View previous topic :: View next topic
|
Author |
Message |
priyanga
New User
Joined: 26 Aug 2004 Posts: 5
|
|
|
|
hi,
what is difference b/w zone decimal & pack decimal
thank u |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
|