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
 

 

using CDD in JCL to control the flow

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
saquib.ahsan

New User


Joined: 22 Sep 2008
Posts: 6
Location: Pune

PostPosted: Thu Apr 23, 2009 12:56 am    Post subject: using CDD in JCL to control the flow
Reply with quote

I have a requirement where in I need some steps of a job to be run of the 1st of every month while the others to be run daily.
One way to dao it is to create two jobs and have one zeke scheduled for 1st of every month and the other as Daily. But I wanted to do it in one job.
I was checking the public boulders link,
and came across the JCL Variable CDD which returns the Current day of month in DD format. however, i wasn't sure how to use it in the job.

If anyone has used it, or has some pointers for the same, that would be of great help.

Thanx
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Apr 23, 2009 1:00 am    Post subject: Reply to: using CDD in JCL to control the flow
Reply with quote

But that link is for IBM Tivoli Workload Scheduler. I don't see how that can be related to Zeke? What does your support team and/or the vendor have to say?
Back to top
View user's profile Send private message
saquib.ahsan

New User


Joined: 22 Sep 2008
Posts: 6
Location: Pune

PostPosted: Thu Apr 23, 2009 1:06 am    Post subject:
Reply with quote

These variables are not specific to Tivoli. They can be used in any JCL. i dont want the requirement to be taken care of by the scheduler, rather I want my job to take care of it.
Bottomline is that i want some way (in JCL of course) that will take care of executing one particular step on the first of the montn, and remaining steps daily.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7932
Location: Bellevue, IA

PostPosted: Thu Apr 23, 2009 1:10 am    Post subject:
Reply with quote

Were you told this or did you just decide it:
Quote:
These variables are not specific to Tivoli. They can be used in any JCL.
Try using them and see how far your JCL gets. There's a link at the top of the page to the manuals; if you don't see it in the JCL Language Reference manual you may find you cannot use the facility (and by the way CDD is not mentioned in this manual at all).
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Apr 23, 2009 1:12 am    Post subject: Reply to: using CDD in JCL to control the flow
Reply with quote

Then the logical course of action, I guess, would be to use a program of your choice to determine when the first of the month is based on the actual run date (a dangerous process, IMHO, if for some reason your application runs late). It would then set a non-zero value for the Return-Code when you want to perform the first of month job steps.

Your job would then use condition-code checks for that return-code value and run the steps only when it has a non-zero value.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 23, 2009 11:33 am    Post subject:
Reply with quote

Quote:
dont want the requirement to be taken care of by the scheduler, rather I want my job to take care of it.

And the reason for this is ...........................
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7932
Location: Bellevue, IA

PostPosted: Thu Apr 23, 2009 4:50 pm    Post subject:
Reply with quote

Quote:
Quote:
dont want the requirement to be taken care of by the scheduler, rather I want my job to take care of it.

And the reason for this is ...........................
Insanity? Arrogance? Trying to create work for oneself? Lack of understanding of schedulers? Not wanting the computer to do what it is good at?

How many guesses do I get?
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Control-M manuals JPVRoff All Other Mainframe Topics 0 Fri May 20, 2016 11:15 am
No new posts Which Control block has the DSNTYPE i... sudarshan.srivathsav PL/I & Assembler 4 Thu Jan 28, 2016 11:29 pm
No new posts DFSORT control statements in any order ? ronald masters DFSORT/ICETOOL 2 Tue Dec 15, 2015 11:22 pm
No new posts What Version Control tool is this? Bill Woodger COBOL Programming 5 Tue Dec 15, 2015 3:47 pm


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