Chapter Contents |
Previous |
Next |
ZDw.d |
Numeric | |
Width range: | 1-32 bytes |
Default width: | 1 |
Decimal range: | 0-32 |
Alignment: | left |
OS/390 specifics: | IBM zoned decimal format |
Details | |
See Also |
Details |
If an overflow occurs, the value that is written is the largest value that fits into the output field; the value will be positive, negative, or unsigned, as appropriate.
The following examples illustrate the use of the zoned decimal format:
Value | Format | Results (Hex) | Notes | |
---|---|---|---|---|
1234 | zd8. |
F0F0F0F0F1F2F3C4 |
||
123 | zd8.1 |
F0F0F0F0F1F2F3C0 |
||
123 | zd8.2 |
F0F0F0F1F2F3F0C0 |
||
-123 | zd8. |
F0F0F0F0F0F1F2D3 |
||
0.000123 | zd8.6 |
F0F0F0F0F0F1F2C3 |
||
0.00123 | zd8.6 |
F0F0F0F0F1F2F3C0 |
||
1E-6 | zd8.6 |
F0F0F0F0F0F0F0C1 |
overflow occurred |
Note: In these
examples, the Value column
represents the value of the data, and the Results column shows a hexadecimal
representation of the bit pattern that is written by the corresponding format.
(You cannot view this data in a text editor unless you view it in hexadecimal
representation.) See EBCDIC Code: Commonly Used Characters
for a table of commonly used EBCDIC
characters.
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.