Chapter Contents |
Previous |
Next |
IBw.d |
Numeric | |
Width range: | 1-8 bytes |
Default width: | 4 |
Decimal range: | 0-10 |
Alignment: | |
OS/390 specifics: | two's complement notation |
Details | |
See Also |
Details |
On an IBM mainframe system, integer values are stored in two's complement notation.
If an overflow occurs, the value written is the largest value that fits into the output field; the value will be positive, negative, or unsigned, as appropriate. If the format includes a d value, the number is multiplied by 10d.
Here are some examples of the IBw.d format:
Value | Format | Results (Hex) | Notes | |
---|---|---|---|---|
-1234 | ib4. |
FFFFFB2E |
||
12.34 | ib4. |
0000000C |
||
123456789 | ib4. |
075BCD15 |
||
1234 | ib6.2 |
00000001E208 |
a d value of 2 causes the number to be multipled by 102 | |
-1234 | ib6.2 |
FFFFFFFE1DF8 |
a d value of 2 causes the number to be multipled by 102 | |
1234 | ib1. |
7F |
overflow occurred | |
-1234 | ib1. |
80 |
overflow occurred |
Note: In these
examples, the Value column
represents the value of the numeric variable. 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.