automate CLEAR.FILE &PH&
Posted: Thu Dec 11, 2003 3:32 am
I would like to automate the deletion of the files in the &PH& folder.
First I wanted to write a job which would execute a "CLEAR.FILE &PH&" and I would have run this job once a day, when every job is finished and before any other job starts. I have done this job and it works fine. Then I have read it is not safe to do it when DS jobs are running and it is better to do it from the OS (AT command for example). Obviously, the job that do the clear command is running when the command is launched but I have been testing the job successfully as it would not allow to delete the files that correspond to process pending.
If it is safe, I would prefer to keep the job solution as it would be launched by a "daily job" and would run before any other job, what ever time this daily job is launched.
If we go for the OS solution, we would then have to synchronize the time when this command would be executed with the time when the DS jobs would start.
Thanks in advance for your advises.
First I wanted to write a job which would execute a "CLEAR.FILE &PH&" and I would have run this job once a day, when every job is finished and before any other job starts. I have done this job and it works fine. Then I have read it is not safe to do it when DS jobs are running and it is better to do it from the OS (AT command for example). Obviously, the job that do the clear command is running when the command is launched but I have been testing the job successfully as it would not allow to delete the files that correspond to process pending.
If it is safe, I would prefer to keep the job solution as it would be launched by a "daily job" and would run before any other job, what ever time this daily job is launched.
If we go for the OS solution, we would then have to synchronize the time when this command would be executed with the time when the DS jobs would start.
Thanks in advance for your advises.