Page 1 of 1

Command to clear the log file

Posted: Thu Nov 27, 2008 5:50 am
by vcsasikala
Hi,
I want to clear the logs (if exists) before running the job.
I want to do it with unix command. Is there any command for that?

Posted: Thu Nov 27, 2008 6:50 am
by ArndW
There is no UNIX command to do this, but you can set the autopurge settings to automatically do this for you.

Posted: Sat Nov 29, 2008 5:47 am
by vcsasikala
How can I set set the autopurge settings ?

Posted: Sat Nov 29, 2008 6:42 am
by ArndW
Go into the director, Menu Job -> Clear Log and then click on the check box for the Auto Purge settings for that particular job. The project default purge settings are set in the DataStage Administrator.

Posted: Sat Nov 29, 2008 8:45 am
by chulett
Note that whatever value you set in the Administrator becomes the value used in any new jobs added after that, in case that wasn't clear.