Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Step5 should run only on Friday

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
mkk157

Active User


Joined: 17 May 2006
Posts: 252

PostPosted: Mon Feb 08, 2010 4:24 pm    Post subject: Step5 should run only on Friday
Reply with quote

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
View user's profile Send private message
References
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4060
Location: Charlotte,NC USA

PostPosted: Mon Feb 08, 2010 4:32 pm    Post subject: Reply to: Step5 should run only on Friday
Reply with quote

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
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 252

PostPosted: Mon Feb 08, 2010 4:35 pm    Post subject:
Reply with quote

Hi Superk,

That's was the puzzle for me.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 6469
Location: Brussels once more ...

PostPosted: Mon Feb 08, 2010 4:43 pm    Post subject:
Reply with quote

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
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 188
Location: Hyderabad

PostPosted: Tue Feb 09, 2010 11:41 am    Post subject:
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1198

PostPosted: Tue Feb 09, 2010 1:25 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Chirantan Banerjee

New User


Joined: 08 Oct 2009
Posts: 14
Location: Kolkata, India

PostPosted: Thu Feb 11, 2010 12:15 pm    Post subject: Re: Reply to: Step5 should run only on Friday
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4060
Location: Charlotte,NC USA

PostPosted: Thu Feb 11, 2010 3:02 pm    Post subject: Reply to: Step5 should run only on Friday
Reply with quote

The EZACFSM1 program is part of TCP/IP. It is known as the "symbol translator utility". EZACFSM1 reads an input file and writes to an output file, translating any symbols in the process.

See reference here: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B350/1.2.9.1?SHELF=AP0ABK19&DT=20050708113621

The symbols it translates are the MVS built-in dynamic system symbols. A basic set is provided by IBM, and others can be created by your MVS systems programmers. You can check here for the list of standard dynamic system variables: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA1E241/2.2.2
Back to top
View user's profile Send private message
Chirantan Banerjee

New User


Joined: 08 Oct 2009
Posts: 14
Location: Kolkata, India

PostPosted: Thu Feb 11, 2010 3:46 pm    Post subject:
Reply with quote

Thanks Kevin.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1