Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
No of Days between 2 dates

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
sprikitik

New User


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

PostPosted: Wed Aug 27, 2008 2:09 pm    Post subject: No of Days between 2 dates
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
References
Anuj D.

Global Moderator


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

PostPosted: Wed Aug 27, 2008 4:39 pm    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1