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 TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm


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