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 10
d.
The following table
contains examples that illustrate the use of the IB
w.d format
under
z/OS:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a d value
of 2 causes the number to be multipled by 10 2
|
|
|
|
a d value
of 2 causes the number to be multipled by 10 2
|
|
|
|
|
|
|
|
|
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.)