Hmm. I don't mind the "first step sets a cond code" idea but there may be many opportunities for uncertainty to intrude unless you pass a PARM= value to that step which explicitly indicates what day this jobstream "belongs" to.

Rhetorical questions for the original poster to ponder :

Will the job always be submitted on the same day it's supposed to run? Will it run on the machine it's submitted on? However submitted, how confident are you that the job will *always* start within the day it "belongs" to? What about situations where production is delayed into the next day? Or run at a DR site? Or run at a DR site in another time-zone? Or re-run in the next day? Or what happens when you want to run several day's production in the one 24 hour period? How important is it if the wrong decision gets made some of the times this job runs? And, more esoterically, what are the boundaries of your production "day"? Is it a 24 hour day that starts at 0000? Or at 0800? Or something else?

You may already have a naming scheme for one or more of the datasets that the job handles that reflects which day of the cycle is being processed. If that's the case then your initial step might be written to determine the day-of-cycle from a dataset name that is going to be used in the job. ie. you effectively pass a dataset name (via a DD statement in the first step's JCL) to your specially-written step one program.

..and for those who fancy a walk in the wild..

  Please do beware the irate bear,
  with his fearsome claw 'n powerful jaw,
  'cos his coughing bark in the moonlit dark,
  means you've had it!  Run!!

Regards to all,
Graeme.

At 03:54 PM 12/09/2006, you wrote:
Write your self a program (rexx, clist, asm etc.) that will run as

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Brain
I have a requirement in which based on the day we need to execute the
step
ie for eg if it is monday then we need to execute the sep2 or else or
other

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to