Hi All,
Have a quick question.
I need to run two scripts in After job subroutine from Job control.
Once the job is done, first script sends the file to another server and second script should delete the original source file in FTP server.
I have both the scripts. But can I use those in after job sub routine anyway. We always use one script. If I need to use both the scripts, what would be the required way of doing it.
Thanks,
Adding Multiple script After job Sub Routine
Moderators: chulett, rschirm, roy
A couple of thoughts...
Run both with the proper separator between them. For UNIX I would typically use '&&' which means only run the thing on the right if the thing on the left succeeds. Not sure if there is a DOS equivalent but that shouldn't really matter.
Or write a wrapper script that runs the other two and use that one after job.
Run both with the proper separator between them. For UNIX I would typically use '&&' which means only run the thing on the right if the thing on the left succeeds. Not sure if there is a DOS equivalent but that shouldn't really matter.
Or write a wrapper script that runs the other two and use that one after job.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: