MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Determining days of the week for future years.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
John Corbin
Beginner


Joined: 23 Jan 2004
Posts: 38
Topics: 21

PostPosted: Wed Nov 03, 2004 10:27 am    Post subject: Determining days of the week for future years. Reply with quote

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
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Nov 03, 2004 10:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group