×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
For me, any number defined for "large" would mean something that would
cause the main calling program to remain in an active state just waiting
for a response. It could be two huge programs or 50 smaller ones. In
that respect, it would have a dependancy with regards to how your batch
system is configured, how many jobs can be active at once in various
queues and the relative level of resource allocation to each queue.
If the number of jobs submitted is such that they would all end in a
reasonable time frame, I'd go with a message queue. If the possibility
existed that these jobs might last awhile, then leaving the main program
running seems to be a waste of resources, in which case a data queue might
be more efficient to act as the trigger for the last program's submission.
Have a good day.
Blake Moorcroft
Analyst/Programmer - Corporate
Russell A. Farrow Limited
2001 Huron Church Road, PO Box 333, Windsor, Ontario N9A 2L6
Bus: 519-966-3003 ext. 566
blake.moorcroft@xxxxxxxxxx
Alan Shore <ashore@xxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
12/09/2011 10:04 AM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc
"midrange-l-bounces@xxxxxxxxxxxx" <midrange-l-bounces@xxxxxxxxxxxx>
Subject
RE: How do you determine when numerous SBMJOBs have ALL finished
Thanks for your reply Blake
Paul Morgan had just mentioned using message queues, and it sounded
promising
I WILL look into this, but how do you define "a large number"
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
Blake.Moorcroft@xxxxxxxxxx
Sent: Monday, September 12, 2011 9:57 AM
To: Midrange Systems Technical Discussion
Cc: midrange-l@xxxxxxxxxxxx; midrange-l-bounces@xxxxxxxxxxxx
Subject: Re: How do you determine when numerous SBMJOBs have ALL finished
Hello Alan...
With regards to the submission process, does the program that performs the
submission (we'll call it BIGSUBMIT) continue to run while waiting for
these other jobs to finish before submitting PROGRAMLAST?
I'm asking because we use a process that will submit a job and then wait
for a response. We submit the secondary job with a unique message queue
name and have the calling program perform a RCVMSG from that message queue
with a wait time of *MAX. The secondary program finishes and passes back
a status message which is then acted on by the calling program.
This works because we're not submitting a large # of programs and the wait
time is not excessive. It might not be feasible for you if the number of
jobs submitted is really large and they are taking a substantial amount of
time to complete before the last program is submitted.
Have a good day.
Blake Moorcroft
Analyst/Programmer - Corporate
Russell A. Farrow Limited
2001 Huron Church Road, PO Box 333, Windsor, Ontario N9A 2L6
Bus: 519-966-3003 ext. 566
blake.moorcroft@xxxxxxxxxx
Alan Shore <ashore@xxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
12/09/2011 09:36 AM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To
"midrange-l@xxxxxxxxxxxx" <midrange-l@xxxxxxxxxxxx>
cc
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
As an Amazon Associate we earn from qualifying purchases.
This thread ...
RE: How do you determine when numerous SBMJOBs have ALL finished, (continued)
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.