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
 

 

Mapping of packed decimal date to simple decimal variable

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

New User


Joined: 24 Jan 2007
Posts: 5
Location: Mumbai

PostPosted: Wed Jan 24, 2007 10:31 pm    Post subject: Mapping of packed decimal date to simple decimal variable
Reply with quote

I want to map one packed decimal date,which is in IMS database,
EXP PIC S9(6) PACKED-DECIMAL
to simple decimal variable.

Date format in IMS database is YYYYDD.

Could u pls let me know what format and size ,I should use in my working storage variables.

Thanks!!
Neeraj
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: Wed Jan 24, 2007 10:53 pm    Post subject:
Reply with quote

Hello,

For the field in your program you could use PIC 9(6).
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Thu Jan 25, 2007 6:25 am    Post subject: Re: mapping of packed decimal date to simple decimal variabl
Reply with quote

Neeraj,

Do you mean a date format of YYMMDD?

Don't understand YYYYDD
Back to top
View user's profile Send private message
NeerajNema

New User


Joined: 24 Jan 2007
Posts: 5
Location: Mumbai

PostPosted: Thu Jan 25, 2007 3:07 pm    Post subject: Re: mapping of packed decimal date to simple decimal variabl
Reply with quote

Sorry!!! date format is YYYYMM.

Thanks
Neeraj
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 Jan 25, 2007 7:33 pm    Post subject:
Reply with quote

Hello,

As suggested, use 9(6).
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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am


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