I'm writing a CL program for submitting a job to a batch by SBMJOB CMD (CALL PGM(PRGLE01)). When my job is completed successfully, I want to send a message or take some action, but only after the job is completed. i.e. (When the job is placed in OutQ and has finished all its processing). Is there any way to do so?
Either set the first program to submit the next job, put them in a single threaded queue where they can simply run in order, or use a message queue to indicate the job has completed. The submit would have to run waiting for the message queue to get an entry before submitting the next job.
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.
Dig Deeper on iSeries CL programming
Related Q&A from John Brandt
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.