Chapter Contents |
Previous |
Next |
PDw.d |
Numeric | |
Width range: | 1-16 bytes |
Default width: | 1 |
Decimal range: | 0-31 |
Alignment: | left |
OS/390 specifics: | IBM packed 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.
Here are several examples of packed decimal format:
Value | Format | Results (Hex) | Notes | |
---|---|---|---|---|
-1234 | pd3. |
01234D |
||
1234 | pd2. |
999C |
overflow occurred | |
1234 | pd4. |
0001234C |
||
1234 | pd4.2 |
0123400C |
a d value of 2 causes the number to be multiplied by 102 |
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 written by the corresponding format. (You
cannot view this data in a text editor, unless you can view it in hexadecimal
representation.)
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.