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.
Running a batch file after a job's successful completion
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Yes.
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.
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.