Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to schedule jobs in mainframes? Is there an inbuildtool?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Preethipulla

New User


Joined: 17 Feb 2016
Posts: 1
Location: India

PostPosted: Thu Feb 18, 2016 1:20 pm    Post subject: How to schedule jobs in mainframes? Is there an inbuildtool?
Reply with quote

Hi ,
I am looking for information to understand what is the best way to have JOBS scheduler for a given case as below

My requirement - I have a list of JOBS which have to run in particular sequence for various applications. Also among my list of JOBS, while execution there is interdependency among other application jobs.

Example. I have application A, B, C each with 3 JOBS .
A1, A2, A3, B1, B2,B3 & C1,C2, C3 . The sequence of running these JOBS could something be like
A1,C3,A2,A3,B1,C2,B2,C1 .

So A2 job cannot run unless C3 is completed. Likewise for B2 to be executed C2 must have been completed.

If sequence is known and predictable we can make a format and get the jobs submitted accordingly. But in my case, I have unpredictable sequences and many applications ( which varies each time based on requirement ). In such case when JOBS of application A, B , C are triggered at same time - when there is a interdependency on another application encountered, the tool/logic/script should be able to automatically verify status of dependency JOB and accordingly proceed to next one or wait for completion and then proceed.

So in this situation ( which I feel is common in many major Mainframe applications ) - what is the best way to handle ? Do we already have any mainframe tool / utility for this ? Or using a scripting language and developing a code to match such action is the only solution ?

Can someone who has good experience with mainframe suggest me about it ?

Thanks in advance,
Preethi
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Thu Feb 18, 2016 1:25 pm    Post subject: Reply to: How to schedule jobs in mainframes? Is there an inbuildtool?
Reply with quote

Quote:
Is there an inbuildtool?

the inbuildtool is the job scheduler available in your organization,
ask Your support about what scheduler is installed.
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Thu Feb 18, 2016 10:01 pm    Post subject:
Reply with quote

only helps if you're on z/OS 2.2, but it introduces a new thing called Job Execution Control (JEC) and Deadline Scheduling to JES2 to allow complex scheduling via standard JCL.

It can combine a set of jobs into a network of jobs with related dependencies using a JOBGROUP JCL statement. There's 10 new JCL statements to provide JEC support as follows:

JOBGROUP: Creates a new job group
ENDGROUP: Denotes the end of the job group
GJOB: Defines a job within a job group
JOBSET: Provides convenient method to define and reference a set of jobs with identical dependencies
SJOB: Defines a single job within the job set
ENDSET: Denotes the end of the job set
BEFORE: Defines jobs or job sets that the current job must run before
AFTER: Defines jobs or job sets that the current job must run after
CONCURRENT: Defines a set of jobs or job sets that must execute at the same time (simultaneously) on the same JES2 MAS member
SCHEDULE: Associates a job with a job group
- Ability to hold a job until a specified time (HOLDUNTL)
- Ability to tell the system that it is desirable that a particular job should start by a specified time (STARTBY). The STARTBY function is also known as deadline scheduling control.
- Ability to run a job at the same time and on the same system as another job (WITH)


There's more detail about this here:
http://www.ibmsystemsmag.com/mainframe/tipstechniques/systemsmanagement/SCHEDULE-JCL-statement/?page=1
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Thu Feb 18, 2016 11:38 pm    Post subject:
Reply with quote

Interesting info Pete
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Fri Feb 19, 2016 1:11 am    Post subject:
Reply with quote

Found even more extensive info in this SHARE presentation (6MB PDF):

https://www.google.co.uk/url?url=https://share.confex.com/share/125/webprogram/Handout/Session17826/Whats%2520new%2520in%2520zOS%252022%2520JES2%2520Job%2520Execution%2520Controls.pdf&rct=j&frm=1&q=&esrc=s&sa=U&ved=0ahUKEwjq6q3Cg4LLAhULAxoKHWY3BBUQFgguMAQ&usg=AFQjCNGdOPBPDB7ukOu6imXgLjwKfzALGQ
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm
No new posts Predicting jobs which are about to re... kpanchabhai85 DFSORT/ICETOOL 4 Thu Jun 30, 2016 7:51 pm
No new posts creating a physical sequential file i... Shaheen Shaik JCL & VSAM 8 Wed Jun 29, 2016 3:46 pm
No new posts How to find jobs that are in schedule... anilkumar922 All Other Mainframe Topics 5 Tue Jun 28, 2016 10:01 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us