Running a batch file after a job's successful completion

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
Ravindar
Participant
Posts: 30
Joined: Tue Mar 23, 2004 6:14 am
Location: Chennai, India

Running a batch file after a job's successful completion

Post by Ravindar »

Hi all,

I want to run a batch file(say dos.bat) once I successfully completed my server job(say A)

I know that it can be done using a sequencer job. But is there any way to do this within that server job(A) itself.

Thanks in advance.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes. 8)

You open the job properties window and find "After Job Subroutine".
Choose ExecDOS from the drop down list, and add the pathname of the BAT file in the Input Value window.

Since you're on version 7.x, you can use the check box to require that the after-job subroutine is only executed if the job itself finishes successfully.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Ravindar
Participant
Posts: 30
Joined: Tue Mar 23, 2004 6:14 am
Location: Chennai, India

Post by Ravindar »

Thanks for ur information.
Post Reply