View previous topic :: View next topic
|
Author |
Message |
rchatu214
New User
Joined: 10 Dec 2006 Posts: 5 Location: hyderabad
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
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 |
|
|
rchatu214
New User
Joined: 10 Dec 2006 Posts: 5 Location: hyderabad
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|