Q
Problem solve Get help with specific problems with your technologies, process and projects.

Submitting a job to batch by SBMJOB CMD

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.


This was last published in April 2003

Dig Deeper on iSeries CL programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close