DOS command for deletinf the file after execution of a job

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vijaykatneni2
Participant
Posts: 16
Joined: Thu Jul 26, 2007 12:38 pm

DOS command for deletinf the file after execution of a job

Post by vijaykatneni2 »

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.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

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.
Post Reply