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

how to excecute diff. steps in the same job on diffrent days


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Wed Sep 05, 2007 7:33 am
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
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
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

Moderator Emeritus


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

PostPosted: Fri Sep 07, 2007 5:07 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts Amount of days between two dates PL/I & Assembler 8
No new posts Get two files from one file with diff... DFSORT/ICETOOL 10
No new posts Identify the count from two diffrent ... DFSORT/ICETOOL 19
No new posts How to remove remote file older than ... All Other Mainframe Topics 4
Search our Forums:

Back to Top