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 excecute diff. steps in the same job on diffrent days

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rchatu214

New User


Joined: 10 Dec 2006
Posts: 5
Location: hyderabad

PostPosted: Wed Sep 05, 2007 6:47 am    Post subject: how to excecute diff. steps in the same job on diffrent days
Reply with quote

my requirement is like i have a job which is scheduled on both monday and tuesday.But it has to execute a particular step on monday and another step on tuesday.how to get this. any suggestions?
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Wed Sep 05, 2007 7:33 am    Post subject:
Reply with quote

Hello,

One easy way to do what you want is to set up 2 jobs - one for Monday and one for Tuesday and schedule them accordingly.

Another way would be to create a "whichday" step that determines the day and sets the return-code accordingly. The 2 steps that are day dependent would check the condition code and only execute on the proper day.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Sep 05, 2007 8:06 am    Post subject:
Reply with quote

An extrapolation on what Dick said and assuming more than one step. 2 Jobs, 4 procs. 1 proc for the first part of the job, 1 for the last part and 1 for Monday and 1 for Tuesday.
Back to top
View user's profile Send private message
rchatu214

New User


Joined: 10 Dec 2006
Posts: 5
Location: hyderabad

PostPosted: Thu Sep 06, 2007 7:22 am    Post subject:
Reply with quote

hi dick,
giving two jobs is not possible in our case because the same job has to scheduled on both days that is what the actual requirement is.

giving 'whichday' step is what i am also thinking at. but i am not getting how to implement. one way i thought is like using 'BLDSYSIN' but to use this the problem is that it will store the day value in a file and we have to read the file to use that value which means we have to write a program for that.Do you have any idea of using the value without any program.


dick scherrer wrote:
Hello,

One easy way to do what you want is to set up 2 jobs - one for Monday and one for Tuesday and schedule them accordingly.

Another way would be to create a "whichday" step that determines the day and sets the return-code accordingly. The 2 steps that are day dependent would check the condition code and only execute on the proper day.



thanks
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Fri Sep 07, 2007 5:07 am    Post subject:
Reply with quote

Hello,

If you want 1 job/1 proc, you could add a step somewhere before the execution of the day-specific programs that would calculate the day-of-week and set an appropriate condition code.

The 2 day-dependent steps would only run on "their day" based on the condition code.
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 -> JCL & VSAM 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 find jobs that are in schedule... anilkumar922 All Other Mainframe Topics 5 Tue Jun 28, 2016 10:01 am
This topic is locked: you cannot edit posts or make replies. BAE Systems - Recruitment Open Days -... Express Mainframe Jobs 0 Fri Apr 22, 2016 8:19 pm
This topic is locked: you cannot edit posts or make replies. Executing JCL specific steps at speci... Shruti Takkar JCL & VSAM 6 Mon Feb 22, 2016 12:39 pm
No new posts How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm
No new posts Write a job to delete the files aging... Abhinav Roy JCL & VSAM 4 Fri Dec 18, 2015 7:17 pm


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