Hi All,
Does any one have idea how to delete the file after the successful execution of job using the Dos command.
For my jobs Datastage server and clien tolls are installed in windows.The job will pick the sequential file from a directory in windows.
After picking the fail the job should run and the file in windows directory shuold be deleted automatically.
can anyone advice me what is the better way to fulfill this requirement.
Thanks in advance.
DOS command for deletinf the file after execution of a job
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 16
- Joined: Thu Jul 26, 2007 12:38 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
An after job subroutine can be set to executed only if the job completes successfully. Use ExecDOS as such an after-job subroutine to execute an approprate DEL command.
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.