Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8679
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: 4650
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: 8679
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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
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
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts Trap the jcl error message or maxcc i... ankita agarwal CLIST & REXX 5 Fri May 18, 2018 2:08 pm
No new posts Rexx command to open an another text ... Bharath Vikraman PC Guides & IT News 7 Sat May 12, 2018 4:34 pm
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts How to control Panel Attributes throu... rsshanmugam CLIST & REXX 3 Mon Feb 26, 2018 9:51 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us