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
 

 

How to go back to past date in COBOL?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
tapas84

New User


Joined: 12 Mar 2009
Posts: 23
Location: Bangalore

PostPosted: Wed Jun 17, 2009 4:15 pm    Post subject: How to go back to past date in COBOL?
Reply with quote

Hi ,
I have a requirement in which i need to go 5 years back and need to add 1 day to that day.I am getting the date from a file in mm,dd yyyy format.


For clear picture pls see the below example...

If i am getting the date as June 30,2009,then

5year-period-start-date = June 30,2009 - 5 years + 1=july 1,2004(desired result)
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


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

PostPosted: Wed Jun 17, 2009 4:49 pm    Post subject:
Reply with quote

Hi,

Let's start with -- What logic do you have in mind?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jun 17, 2009 4:51 pm    Post subject:
Reply with quote

Here is a listing of the LE (language environment) manuals.
pick your release/ops-sys version.

the manuals list routines that you can call to perform date calculations.

If you do a search on this forum, you will find many threads discussion date manipulation.
Back to top
View user's profile Send private message
tapas84

New User


Joined: 12 Mar 2009
Posts: 23
Location: Bangalore

PostPosted: Tue Jun 23, 2009 1:56 pm    Post subject: Reply to: How to go back to past date in COBOL?
Reply with quote

Hi Dick,
Thanks for your input.I got my logic.Thanks again.
Back to top
View user's profile Send private message
kumar40322

New User


Joined: 25 Apr 2009
Posts: 15
Location: Hyderabad

PostPosted: Tue Jun 23, 2009 2:50 pm    Post subject:
Reply with quote

Hi

As u got the logic, can u show me the logic?
Back to top
View user's profile Send private message
sakthikumarT

New User


Joined: 09 Apr 2009
Posts: 42
Location: Bangalore

PostPosted: Tue Jun 23, 2009 3:07 pm    Post subject:
Reply with quote

Could you able to explain your logic.?
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 -> COBOL Programming 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. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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