Hi,
I need to clear Ph directory by scheduling a job. i tried doing it through after sub routine bt running into following error:
Unable to unlink the operating system file "DSD.RUN_21871_15815".
[EACCES] Permission denied
CLEAR.FILE was unable to complete processing.
Is it that since the job which calls this after sub routine finishes after the sub routine, the ph directory is nt cleared?
How can i achieve this ?
Clear PH directory through a job
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Its file in the &PH& directory is open while the job is open. You can't delete a file that is open for writing. Hence &PH& is not cleared. You would be better trying a command that deletes only closed files - maybe files more than a week old (as appropriate to your site).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 17
- Joined: Tue Jun 23, 2009 6:44 pm
Re: Clear PH directory through a job
Hi,
write script which calls uvsh clear.file &PH&
call this script using the command activity in sequence after successfull execution of job
Regards
Suresh
write script which calls uvsh clear.file &PH&
call this script using the command activity in sequence after successfull execution of job
Regards
Suresh
Suresh Angadi
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: