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
 
How to subtract days from a formatted date?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
guruji
Warnings : 1

New User


Joined: 13 Apr 2007
Posts: 42
Location: Bangalore

PostPosted: Thu May 15, 2008 10:54 am    Post subject: How to subtract days from a formatted date?
Reply with quote

Hi,

I have a formatted date say 12/07/2007 in a variable ws-temp-date. I've to subtract 364 days from this date and get the corresponding date.

Can anyone suggest a logic for the same?

Thanks,
Reni
Back to top
View user's profile Send private message
References
PostPosted: Thu May 15, 2008 10:54 am    Post subject: Re: How to subtract days from a formatted date? Reply with quote

dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 7517
Location: 221 B Baker St

PostPosted: Thu May 15, 2008 11:14 am    Post subject:
Reply with quote

Hello,

Look here:http://ibmmainframes.com/viewtopic.php?t=11587&highlight=date+arithmetic

I recommend you become comfortable with the SEARCH feature. . .
Back to top
View user's profile Send private message
dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 1393
Location: germany

PostPosted: Thu May 15, 2008 11:43 am    Post subject:
Reply with quote

I would also ask your peers. I have not been in a shop that did not have its own date routines, which everybody would use.
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