View previous topic :: View next topic |
Author |
Message |
John Corbin Beginner
Joined: 23 Jan 2004 Posts: 38 Topics: 21
|
Posted: Wed Nov 03, 2004 10:27 am Post subject: Determining days of the week for future years. |
|
|
In our TSO area we test batch and online ssytenms based on FUTURE dates.
So even though todays date is November 3, 2004 our business date is April 4, 2005.
depending on what future date we are on we run various batch schedules via Control-M.
Currently we manually look up the future date and order in the appropriate schedules.
I would like to get REXX to:
- determine what day of the week any future date is
- determine what schedules should be run for that date ( excluding weekends and most holidays )
The output does not have to be anything fancy.
Can REXX handle this ? |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Nov 03, 2004 10:35 am Post subject: |
|
|
Rather easily. As an example:
Code: |
/* REXX */
GDATE = 20041231
DOW = DATE('W',GDATE,'S')
SAY DOW
|
Which correctly shows that Dec. 31st of this year is a Friday. |
|
Back to top |
|
|
|
|