Page 1 of 1

Clear file after successful job completion

Posted: Wed Aug 12, 2009 3:34 am
by sudarsan
Hi,

In my project,I have a requirement like this.

Once the job finishes successfully, my input file needs to be cleared and it should be empty.

Can any one please help me on this.

Posted: Wed Aug 12, 2009 4:07 am
by DS_SUPPORT
Just Create a file with the same name in the same path. You can do this with a routine, called in after job subroutine or a simple job which can be called after your original job completion.

Posted: Wed Aug 12, 2009 4:08 am
by Sainath.Srinivasan
Do your project use a phrase called "archiving" ?

Anyhow, if you want to clear, you can do a

Code: Select all

echo '' > fileName

Posted: Thu Aug 13, 2009 12:59 am
by sudarsan
Hi All,

Thanks all for your inputs....

It's got resolved...