IBw.d Format: z/OS

Writes values in integer binary (fixed-point) format.
Category: Numeric
Alignment: left
Default: 4
Ranges: 1-8 bytes, 0-10
z/OS specifics: Two's complement big-endian notation
See: IBw.d Format in SAS Formats and Informats: Reference

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.
The following table contains examples that illustrate the use of the IBw.d format under z/OS:
Value
Format
Results (Hexadecimal)
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

Formats
S370FIBw.d Format in SAS Formats and Informats: Reference
S370FPIBw.d Format in SAS Formats and Informats: Reference