Previous Page | Next Page

Formats under z/OS

IBw.d Format: z/OS



Writes values in integer binary (fixed-point) format.
Numeric
Width range: 1-8 bytes
Default width: 4
Decimal range: 0-10
Alignment:
z/OS specifics: two's complement big-endian notation
See: IBw.d Format in SAS Language Reference: Dictionary

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 (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.)  [cautionend]


See Also

Previous Page | Next Page | Top of Page