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

Execute a job based on RC of a step in other job


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Deepakgoyal2005

New User


Joined: 22 Mar 2007
Posts: 57
Location: India

PostPosted: Tue Jul 19, 2011 10:33 pm
Reply with quote

I have a job with about 100 steps and need to break it down in several JCLs for more simplicity and flexibility.
There are certain steps which depends upon the RC of other steps due to which I am not able to think on a feasible solution.
Is it possible to create separate JCLs (irrespective of the dependencies among its steps) and execute any of the required step based on the RC of a step of other JCL.
Or is there any other better option to do the needful?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jul 19, 2011 10:39 pm
Reply with quote

That's what scheduling software is all about.

Talk to the people responsible for it about your requirement. Shouldn't be more than a couple of hours work for them.
Back to top
View user's profile Send private message
Deepakgoyal2005

New User


Joined: 22 Mar 2007
Posts: 57
Location: India

PostPosted: Tue Jul 19, 2011 10:51 pm
Reply with quote

Hi Expat,

Thanks for the quick response.

1 Doubt:
By scheduling the jobs, they can be triggered one after the other.
But in case say Step 40 and step 50 needs to be executed it the RC of Step 10 = 4 and step 60 can be executed if the RC of Step 10 = 2.
I think in such case if we break the JCL into jobs with 10 steps each (irrespective of the dependencies among steps) we need to place some logic to take care of the dependencies of step 40, 50 and 60 upon RC of step 10.
I am looking out to tackle such scenario.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jul 19, 2011 10:55 pm
Reply with quote

Like I said, your people responsible for the scheduling software should be able to work it all out and implement the solution based on the input given them.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Jul 20, 2011 12:02 am
Reply with quote

As expat says, your scheduling software (and those who use it, importantly) should be able to do what you want.

How you want to do it is still an open question.

You could do it as 100 single-step jobs. Or keeping steps in a job which are "more logical" to be together and create fewer new jobs.

If your site is big enough, you probably have people responsible for the JCL. Perhaps you only have the scheduling people. You need to find something which works for them, and for you. Tell your boss you want to talk to "whoever" and find out what they suggest, they find out what you suggest, and away you go. Technically, your scheduler can cope with any break-up of the large job that you require. Other things do come into it (ease of re-start/re-runs, on-line availability, backup schedule, etc).
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Fetch data from programs execute (dat... DB2 3
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
Search our Forums:

Back to Top