|
Specified for binary data items. Such items have a decimal equivalent consisting of the decimal digits 0 through 9, plus a sign.
Negative numbers are represented as the two's complement of the positive number with the same absolute value.
The amount of storage occupied by a binary item depends on the number of decimal digits defined in its PICTURE clause
| Digits in PICTURE clause |
Storage occupied |
| 1 through 4 |
2 bytes (halfword) |
| 5 through 9 |
4 bytes (fullword) |
| 10 through 18 |
8 bytes (doubleword) |
Binary data is “big-endian”: the operational sign is contained in the leftmost bit.
Note: BINARY, COMPUTATIONAL, and COMPUTATIONAL-4 data items can be affected by the BINARY and TRUNC compiler options.
For information on the effect of these compiler options, see the Enterprise COBOL Programming Guide. |
© Copyright IBM.
|