View previous topic :: View next topic |
Author |
Message |
abracadabra Beginner
Joined: 02 Sep 2003 Posts: 101 Topics: 55 Location: India
|
Posted: Fri Jun 08, 2007 8:53 am Post subject: Job Submit from Job(s) |
|
|
Hi,
Before anyone complains, I would like to state that I have given a search and have not found the appropriate solution.
My requirement is that I have multiple jobs (5) and the completion of all these jobs should trigger the 6th job. Note that there is no order in which the jobs will complete. Any job can be the last job to complete.
I do not want the multiple jobs to run one after the other. They have to run together. Note that I am using a REXX routine to trigger the jobs and was wondering if the return codes from each job could be trapped to set of the 6th job. _________________ Cheers! |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Fri Jun 08, 2007 9:05 am Post subject: |
|
|
abracadabra,
1.Add a step to create a dataset with just 1 record for all the 5 jobs. This will be the last step of all the 5 jobs.
2. Add 1 step in job 6 (first step) to read all the 5 datasets created from 5 jobs (code disp=old) and submit this job after the submission of all the 5 jobs. This will sit in the queue as the 5 jobs have exclusive excess for the datasets. Once all the 5 jobs are completed JOB 6 will run.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Fri Jun 08, 2007 10:14 am Post subject: |
|
|
I would suggest the use of a scheduler software for this. _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Fri Jun 08, 2007 11:04 am Post subject: |
|
|
This is a clever solution when you are in a test environment and has no access to a scheduler. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
abracadabra Beginner
Joined: 02 Sep 2003 Posts: 101 Topics: 55 Location: India
|
Posted: Fri Jun 08, 2007 12:53 pm Post subject: |
|
|
This is excellent. Thanks Kolusu. _________________ Cheers! |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Fri Jun 08, 2007 12:55 pm Post subject: |
|
|
The problem is if Job6 gets an initiator and sits in a wait, other ready work might be delayed. If this is acceptable, go for it! _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Fri Jun 08, 2007 4:07 pm Post subject: |
|
|
In reply to Dick's comment. I haven't yet worked in an environment that did not use the schedule software in dev / test / prod. The new schedules were built and initially tested in dev, tested thoroughly in test, and finally migrated to production with the new / amended application.
OK, so these are the standards that I have met or introduced to many sites, but yeah, there are some that won't use the scheduler outside of production. _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
 |
|
|