|
|
| Author |
Message |
mkk157
Active User
Joined: 17 May 2006 Posts: 252
|
|
|
|
Dear Experts,
I have a Job with 5 steps in it. This job runs every business day.
A GDG contains 5 generations.
First 4 steps of the job creates a new generation of the GDG every day.
My requirement is:
Step5 of the job concatenates all the 5 generations of GDG, and creates a new PS file, this step should run only on every friday.
i.e. To summarize,
Job should run every day (5 times a week)
Steps 1 to 4 should run every day (5 times a week)
Step 5 should run only on friday ( one time a week)
How to write the STEP5. Please advise ? |
|
| Back to top |
|
 |
References
|
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 4060 Location: Charlotte,NC USA
|
|
|
|
What is going to determine it it's Friday? Is this something that you expect your job scheduling system to handle?
For me, when it's a non-scheduled job, I use EZACFSM1 to provide the value of the system variable for DAY, and then SORT to check the value (i.e. 1,3,CH,EQ,C'FRI') and set the return-code as needed. |
|
| Back to top |
|
 |
mkk157
Active User
Joined: 17 May 2006 Posts: 252
|
|
|
|
Hi Superk,
That's was the puzzle for me. |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 6469 Location: Brussels once more ...
|
|
|
|
Why not have the concatenation job as a seperate job that only processes on the last working day of the week, or on Friday if Friday is the must day.
Alternatively talk to your scheduling people to see what functionality exists within the scheduling software. |
|
| Back to top |
|
 |
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 188 Location: Hyderabad
|
|
|
|
In out shop this is done thru scheduling....something like shown below
| Code: |
%INCLUDE IF(TODAY('FRI'))
JCL STEP
%ENDINCL
|
you should talk to scheduling ppl as suggested by expat.
thanks, |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1198
|
|
|
|
Hi,
| Quote: |
This job runs every business day.
|
How is this achieved, what submits this job and what determines it's a business day ?
Gerry |
|
| Back to top |
|
 |
Chirantan Banerjee
New User
Joined: 08 Oct 2009 Posts: 14 Location: Kolkata, India
|
|
|
|
superk, can you please elaborate on EZACFSM1 ?
| superk wrote: |
What is going to determine it it's Friday? Is this something that you expect your job scheduling system to handle?
For me, when it's a non-scheduled job, I use EZACFSM1 to provide the value of the system variable for DAY, and then SORT to check the value (i.e. 1,3,CH,EQ,C'FRI') and set the return-code as needed. |
|
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 4060 Location: Charlotte,NC USA
|
|
| Back to top |
|
 |
Chirantan Banerjee
New User
Joined: 08 Oct 2009 Posts: 14 Location: Kolkata, India
|
|
|
|
| Thanks Kevin. |
|
| Back to top |
|
 |
|
|