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
 
convert mmddyy to mmddyyyy

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

New User


Joined: 07 Jan 2010
Posts: 1
Location: chennai

PostPosted: Wed Feb 03, 2010 7:03 pm    Post subject: convert mmddyy to mmddyyyy
Reply with quote

how to convert mmddyy to mmddyyyy
Back to top
View user's profile Send private message
References
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 4259
Location: Atlanta, GA

PostPosted: Wed Feb 03, 2010 7:08 pm    Post subject:
Reply with quote

Click on the manuals link at the top of the page, find the COBOL Language Reference and Programming Guide manuals, and read up on date formats and MOVE statements until you can do it yourself.

Furthermore, you didn't specify anywhere near enough information to get realistic answers. If all the dates are this century, just add the digits 20 to the right place. If not, what are the rules -- what's the lowest date you'll see, for example?
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 698
Location: Germany

PostPosted: Thu Feb 04, 2010 2:17 pm    Post subject:
Reply with quote

Hi !

InnDate = mmddyy
OutDate = mmddhhyy

IF InDate_JJ GT '60' MOVE '19' to OutDate_HH
ELSE MOVE '20' to OutDate_HH
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


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

PostPosted: Thu Feb 04, 2010 8:08 pm    Post subject:
Reply with quote

Hello,

Well, a possibility, but what about people born before 1960 (which is most of the "seniors" here icon_smile.gif )?

Hopefully the organization has rules about how to convert dates. . .
Back to top
View user's profile Send private message
PeterHolland

Active Member


Joined: 27 Oct 2009
Posts: 531
Location: Netherlands, Amstelveen

PostPosted: Thu Feb 04, 2010 9:00 pm    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Well, a possibility, but what about people born before 1960 (which is most of the "seniors" here icon_smile.gif )?

Hopefully the organization has rules about how to convert dates. . .


Sometimes i feel like im still in "the dark ages", reading (or try to undertsand) the questions here.
Back to top
View user's profile Send private message
Bill O'Boyle

Active Member


Joined: 14 Jan 2008
Posts: 991
Location: South Carolina, USA

PostPosted: Thu Feb 04, 2010 9:29 pm    Post subject: Reply to: convert mmddyy to mmddyyyy
Reply with quote

Language Environment offers Callable Service routines to query (and save if you'd like) the current default century (CEEQCEN) and alter this default century (CEESCEN) to the value of your choosing. You would then need to use the Callable Service routines that convert MMDDYY to MMDDYYYY format.

The default century window for Language Environment is set to start 80 years before the current system date.

If you choose to use this functionality, this is all documented in the LE manuals for your review.

Just another choice....

Bill
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