Like numbers that are
stored in standard format, zoned decimal digits are represented in
EBCDIC code. Each digit requires one byte of storage space. The low-order,
or rightmost, byte represents both the least significant digit and
the sign of the number. Digits to the left of the least significant
digit are represented in EBCDIC code as 'F0'x through 'F9'x. The character
that is printed for the least significant digit depends on the sign
of the number. In EBCDIC code, negative numbers are represented as
'D0'x through 'D9'x in the least significant digit position; positive
numbers are represented as 'C0'x through 'C9'x. If the informat specification
includes a
d value, the number
is divided by 10
d.
The following examples
illustrate the use of the ZD
w.d informat:
|
|
|
|
|
|
|
a d value
of 2 causes the number to be divided by 10 2
|
|
|
|
|
|
|
|
a d value
of 6 causes the number to be divided by 10 6
|
|
|
|
a d value
of 6 causes the number to be divided by 10 6
|
Note: In these examples, Data Line
(Hexadecimal) represents the bit pattern stored, which is the value
that you see when you view it in a text editor that displays values
in hexadecimal representation. Value is the number that is used by
SAS after the data pattern has been read using the corresponding informat.
For a table of commonly used EBCDIC characters, see
EBCDIC Code: Commonly Used Characters.