IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Mapping of packed decimal date to simple decimal variable


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Wed Jan 24, 2007 10:53 pm
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
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
Reply with quote

Sorry!!! date format is YYYYMM.

Thanks
Neeraj
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Jan 25, 2007 7:33 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
Search our Forums:

Back to Top