Thanks for your reply Paul
This sounds promising. I will have to look into message queues
Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Morgan, Paul
Sent: Monday, September 12, 2011 9:53 AM
To: Midrange Systems Technical Discussion
Subject: RE: How do you determine when numerous SBMJOBs have ALL finished
Alan,
Create a message queue for the process. Use the MSGQ option on the submit job commands to send the completion/failure messages for the jobs to that message queue. The submitting job then monitors the message queue and waits for the same number of messages as jobs submitted then submits the last job. If any job doesn't finish successfully you get the job failure message on the queue and the main job can take appropriate action.
Paul Morgan
Principal Programmer Analyst
IT Supply Chain/Replenishment
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Shore
Sent: Monday, September 12, 2011 9:37 AM
To: midrange-l@xxxxxxxxxxxx
Subject: How do you determine when numerous SBMJOBs have ALL finished
Good morning all
I have one job that submits numerous (a lot) of submit jobs Once ALL of them have finished SUCCESSFULLY, I need to submit another one (let's call it PROGRAMLAST) I was just wondering if anyone else is doing or has done the same thing, what process was used.
I am toying with the idea of using a data area and within each SBMJOB adding 1 to this data area and checking for a particular value in the PROGRAMLAST program This would mean that PROGRAMLAST would need to be always submitted, but waiting for a value to appear in the data area
Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.