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
 

 

convert mmddyy to mmddyyyy

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
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

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

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: 755
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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

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

Global Moderator


Joined: 27 Oct 2009
Posts: 2433
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

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, 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
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
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts convert PD to ZD ram_vizag DFSORT/ICETOOL 5 Sat Nov 05, 2016 3:06 am


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