View previous topic :: View next topic
|
Author |
Message |
saquib.ahsan
New User
Joined: 22 Sep 2008 Posts: 6 Location: Pune
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
saquib.ahsan
New User
Joined: 22 Sep 2008 Posts: 6 Location: Pune
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|