Function in REXX



IBM's Command List programming language & Restructured Extended Executor

Function in REXX

Postby opelosi » Wed Sep 10, 2008 7:25 am

Hi folks...

I looking for a function in REXX that would return what day Christmas day falls on in any given year. The input to the exec is year.

Does anyone have any clue how to do that??

Cheers,

Orlando
opelosi
 
Posts: 6
Joined: Wed Sep 10, 2008 7:16 am
Has thanked: 0 time
Been thanked: 0 time

Re: Function in REXX

 

Re: Function in REXX

Postby dick scherrer » Wed Sep 10, 2008 7:46 am

Hello opelosi and welcome to the forums,

Try here:
http://publibz.boulder.ibm.com/cgi-bin/ ... 350/4.3.16?

You need to "build" the complete date from the year entered. Fortuntely, Christmas is always Dec 25 ;)
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Function in REXX

Postby opelosi » Wed Sep 10, 2008 11:13 pm

Thanks!! It worked ;)
opelosi
 
Posts: 6
Joined: Wed Sep 10, 2008 7:16 am
Has thanked: 0 time
Been thanked: 0 time

Re: Function in REXX

Postby dick scherrer » Thu Sep 11, 2008 12:13 am

You're welcome - thanks for letting us know it is working :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post