× 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.



Hi Malini

There are a number of ways of doing this, but it depends on exactly what you 
want to happen.  In addition to the others that have been suggested, you could 
try:

Option 1:
CL job submits jobs A, B, C and D to a single threaded job queue so that they 
run in sequence...

Option 2:
CL job submits job A, job A submits job B, job B submits job C and Job C 
submits job D...

Option 3:
You have three data areas; JOB_A_STS, JOB_B_STS and JOB_C_STS all of which are 
a single character in length and they hold a status value of "0=Not in use", 
"1=Running", "2=Completed".  The CL program submits jobs A, B and C, and the 
first thing that these jobs do is set the appropriate data area value to "1".  
The last thing the jobs do is to set the appropriate data area to "2" before 
ending.  The CL job in the meantime checks the status of all three data areas 
and if they are all "2" then job D is submitted.  If not, it does a delay job 
for however long you think and then tries again.  Job D when run resets the 
data areas back to "0".

An alternative is for job D to be submitted at the same time and for job D to 
do the checking of the data areas before continuing.

Option 4:
Again using data areas, each job (A, B and C) could retrieve it's full job name 
and store the details in the data area for the originial CL program or Job D to 
use to determine whether or not the job had completed successfully.

All the best

Jonathan
www.astradyne-uk.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.