Baraniecki, Ray wrote:
I am performing the following instructions "
If year > "1900" Then year = year - 1
day = (year + (year / 4) + jday) // 7" in the hope of receiving an
answer ranging from 1 through 7.
When the year = 2004 and the julian day = 147 I get a result of 4.75. I
was expecting an answer of 4 which would indicate Wednesday.
Can someone help?
Thanks,
Ray Baraniecki
Technical Consultant
Morgan Stanley IIG
75 Varick Street
New York, NY 10013
917-237-7066
Try
day = (year + (year % 4) + jday) // 7
this insures you divide an integer by 7, returning
the remainder.
Then try convincing management to bring us in
to teach our five day REXX class (oh well, it
doesn't hurt to ask.)
Details:
http://www.trainersfriend.com/TSO_Clist_REXX_Dialog_Mgr/a750descrpt.htm
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
----------------------------------------------------------------------
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