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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm


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