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

using CDD in JCL to control the flow


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu Apr 23, 2009 1:00 am
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 23, 2009 1:10 am
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

Global Moderator


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

PostPosted: Thu Apr 23, 2009 1:12 am
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: 8797
Location: Welsh Wales

PostPosted: Thu Apr 23, 2009 11:33 am
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 23, 2009 4:50 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Help Control-R IBM Tools 2
No new posts Try to understand IMS control block IMS DB/DC 0
No new posts Control-M Delay All Other Mainframe Topics 0
This topic is locked: you cannot edit posts or make replies. Control-m JOB executing even when the... Compuware & Other Tools 6
Search our Forums:

Back to Top