IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

No of Days between 2 dates


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sprikitik

New User


Joined: 29 Jan 2007
Posts: 61
Location: Makati City, Philippines

PostPosted: Wed Aug 27, 2008 2:09 pm
Reply with quote

Hi!

How do i compute for the number of days between 2 dates without using any DB2 function?

Thanks!
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Aug 27, 2008 4:39 pm
Reply with quote

Hi,

Something like -
Code:
COMPUTE WS-DAYS = FUNCTION INTEGER-OF-DATE (WS-DATE-1) - 
                FUNCTION INTEGER-OF-DATE (WS-DATE-2)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Amount of days between two dates PL/I & Assembler 8
No new posts How to remove remote file older than ... All Other Mainframe Topics 4
No new posts Dates compare on specific dates using... DFSORT/ICETOOL 2
This topic is locked: you cannot edit posts or make replies. Add 5 days to a date DB2 19
No new posts Process file after 7 days of hold All Other Mainframe Topics 4
Search our Forums:

Back to Top