I was not aware that a date could be provided to the function. Thanks,
Ray Baraniecki Technical Consultant Morgan Stanley IIG 75 Varick Street New York, NY 10013 917-237-7066 -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Arthur T. Sent: Thursday, May 26, 2005 9:51 PM To: [email protected] Subject: Re: Rexx Question On Fri, 27 May 2005 01:07:27 GMT, in bit.listserv.ibm-main (Message-ID:<[EMAIL PROTECTED]>) "gerard46" <[EMAIL PROTECTED]> wrote: >Here is a REXX subroutine that calculates the day-of-week >from a mm/dd/yyyy date (year must be four digits): Again, if he has mm/dd/yyyy, why not use the built-in function to get the name of the weekday? yyyy = right(year,4,'0') mm = right(month,2,'0') dd = right(day,2,'0') yyyymmdd = yyyy || mm || dd dow = date("W",yyyymmdd,"S") which could be made into a one-liner, but it would be line-wrapped by my mail program. If you really need a number, just set up a stem variable: daynum.Sunday = 0 /* or 1 or whatever number you want */ daynum.Monday = daynum.Sunday + 1 etc. ---------------------------------------------------------------------- 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 **** Important Notice to Recipients **** It is important that you do not use e-mail to request, authorize or effect the purchase or sale of any security or commodity, to send fund transfer instructions, or to effect any other transactions. Any such request, orders, or instructions that you send will not be accepted and will not be processed by Morgan Stanley. **************************************** ---------------------------------------------------------------------- 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

