Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Date Comparison in Rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Adit Nigam

New User


Joined: 08 Apr 2010
Posts: 9
Location: Bangalore

PostPosted: Tue Apr 13, 2010 5:26 pm    Post subject: Date Comparison in Rexx
Reply with quote

Can anyone tell me how can I compare two dates in Rexx. is there a direct function?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Apr 13, 2010 5:31 pm    Post subject:
Reply with quote

What manuals have you read. They are available from the sticky topic at the top of the CLIST / REXX forum.

Take a look at the DATE function
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Tue Apr 13, 2010 5:32 pm    Post subject: Reply to: Date Comparison in Rexx
Reply with quote

If they are both in the Base date format, then you can subtract one date from the other to determine the number of days.
Back to top
View user's profile Send private message
Adit Nigam

New User


Joined: 08 Apr 2010
Posts: 9
Location: Bangalore

PostPosted: Tue Apr 13, 2010 5:42 pm    Post subject:
Reply with quote

thanks Kevin,

I can get the current date in Base format, but how can I change some date which I am reading from a file to base format? or is there any other method of comparing dates.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Apr 13, 2010 5:44 pm    Post subject:
Reply with quote

I suggest that you read the link that Kevin supplied in his original reply.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Apr 13, 2010 5:45 pm    Post subject: Reply to: Date Comparison in Rexx
Reply with quote

the rexx manual will tell all You might want to know about the DATE function
and it' s tranformation capabilities

to save some of Your precious time her is a link to ..
the tso/e bookshelf
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/IKJ4BK80

the rexx guide
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4C310/CCONTENTS?SHELF=IKJ4BK80&DN=SA22-7791-01&DT=20010706113306
te rexx reference
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A370/CCONTENTS?SHELF=IKJ4BK80&DN=SA22-7790-07&DT=20060626210253
Back to top
View user's profile Send private message
Adit Nigam

New User


Joined: 08 Apr 2010
Posts: 9
Location: Bangalore

PostPosted: Tue Apr 13, 2010 5:58 pm    Post subject:
Reply with quote

Thanks Enrico,

The links were really helpful. I had used the date functions many times but didn't knew all the options available.

Thank you very much
Back to top
View user's profile Send private message
Adit Nigam

New User


Joined: 08 Apr 2010
Posts: 9
Location: Bangalore

PostPosted: Tue Apr 13, 2010 6:03 pm    Post subject:
Reply with quote

sorry Kevin, I didn't realized that you gave the direct link to the date function. icon_cry.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us