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
 
Difference b/w zone decimal & pack decimal

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

New User


Joined: 26 Aug 2004
Posts: 5

PostPosted: Sat Oct 02, 2004 12:59 pm    Post subject: Difference b/w zone decimal & pack decimal
Reply with quote

hi,


what is difference b/w zone decimal & pack decimal



thank u
Back to top
View user's profile Send private message

priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Tue Oct 05, 2004 9:57 pm    Post subject: Re
Reply with quote

PACKED DECIMAL reserves half byte per character. To store in packed decimal use COMP-3.

The internal format of storage is 8421.

Zoned decimal reserves one 2B/ 4B / 8B depending on the no of inputs.

Use COMP / BINARY to store in Zoned Decimal.

The internal format is Binary.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Oct 06, 2004 8:03 am    Post subject:
Reply with quote

Hi Pryia,

What you describe as Zoned Decimal is really Binary. Zoned Decimal is External Decimal (usage DISPLAY).

A Zoned Decimal number is represented in storage as e.g. F1F2F3C4 for a positive 1234. The Fs and the C are the zones.
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 Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm

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