Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us