IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Job triggers to run one after the other


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Thu Oct 20, 2011 6:06 pm
Reply with quote

Hi,

I have job1, job2 and job3. How can I schedule these 3 jobs in test region to run one after the other. Is there any option in jcl by which I can do it myself.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8795
Location: Welsh Wales

PostPosted: Thu Oct 20, 2011 6:10 pm
Reply with quote

Without even knowing which package you have installed, who knows.

As to the access so to do, you need to talk to your scheduling people, which is where you should have gone before even posting.
Back to top
View user's profile Send private message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Thu Oct 20, 2011 6:42 pm
Reply with quote

Thank you. let me check it up here with my scheduling team.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Thu Oct 20, 2011 11:53 pm
Reply with quote

Otherwise you can add a tso step at the end of a job which would release the next job (given the appropriate commands/exec, of course!).
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Fri Oct 21, 2011 12:22 am
Reply with quote

Hello,

Or add a step to the end of the first 2 jobs to submit the next job thru the Internal Reader (INTRDR). There are several topics in the forum that show the JCL for this.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Fri Oct 21, 2011 2:04 am
Reply with quote

Please be careful with that INTRDR stuff. Make double-sure that you have good condition code checking, AND you make sure you delete any files that need to be cleaned up.

The scheduling packages do all of that for you, but your job step will get an RC of 0 even if you got a "not cataloged 2" condition.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1787
Location: Bloomington, IL

PostPosted: Fri Oct 21, 2011 2:34 am
Reply with quote

Using a scheduler is the preferred solution. In addition to the suggestions already given, if your have a JES3 test system, you can create a DJC network.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Fri Oct 21, 2011 3:06 am
Reply with quote

Hello,

Quote:
Using a scheduler is the preferred solution.
Yup. Agreed, but unfortunately there appear to be more and more places that do not believe testing needs a scheduler - only production.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1787
Location: Bloomington, IL

PostPosted: Fri Oct 21, 2011 2:52 pm
Reply with quote

dick scherrer wrote:
Hello,

Quote:
Using a scheduler is the preferred solution.
Yup. Agreed, but unfortunately there appear to be more and more places that do not believe testing needs a scheduler - only production.

That is true. Out of respect for the rules of these fora, I shan't tell you what we did on ours icon_wink.gif
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1743
Location: Tirupur, India

PostPosted: Mon Oct 24, 2011 1:27 pm
Reply with quote

A similar post of one JCL triggering another
ibmmainframes.com/post-6705.html
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Log an Plan name/id or Job Id using D... DB2 1
No new posts CICS web service from DB2 Triggers or... DB2 2
No new posts DB2 triggers to send realtime data DB2 2
No new posts IMSDC screen abends and triggers mail IMS DB/DC 2
No new posts EXIT in Triggers DB2 8
Search our Forums:

Back to Top