MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Job Submit from Job(s)

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
abracadabra
Beginner


Joined: 02 Sep 2003
Posts: 101
Topics: 55
Location: India

PostPosted: Fri Jun 08, 2007 8:53 am    Post subject: Job Submit from Job(s) Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Fri Jun 08, 2007 9:05 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Fri Jun 08, 2007 10:14 am    Post subject: Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Jun 08, 2007 11:04 am    Post subject: Reply with quote

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
View user's profile Send private message
abracadabra
Beginner


Joined: 02 Sep 2003
Posts: 101
Topics: 55
Location: India

PostPosted: Fri Jun 08, 2007 12:53 pm    Post subject: Reply with quote

This is excellent. Thanks Kolusu.
_________________
Cheers!
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Fri Jun 08, 2007 12:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Fri Jun 08, 2007 4:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group