Data Types
The following table is a list of types. Many of these Types can be used together (example: PACKED DECIMAL).
Type | Description | |||
---|---|---|---|---|
ASCII NUMERIC | Numeric characters in ASCII. | |||
BOOLEAN | BOOLEAN may also be qualified as INTEGER. They are treated as right justified binary integers; however, fields with the value of zero are considered to be equal to FALSE, while fields with a non-zero value are considered to be TRUE. | |||
BINARY | Binary data type. | |||
INTEGER |
INTEGER types may be signed or unsigned. They are treated as right justified binary integers of the length specified in the LENGTH statement. Integers may also be qualified as BOOLEAN.
|
|||
PACKED | PACKED types can be signed or unsigned. Packed decimal digits of the length are specified in the LENGTH statement in bytes. They are treated as right-justified. Since packed decimals are stored two digits to a byte, the total number of digits is twice the length for UNSIGNED PACKED and twice the length minus 1 for signed PACKED. For signed values the right-most nibble holds the sign value. | |||
ZONED DECIMAL | The ZONED DECIMAL type is treated as EBCDIC NUMERIC characters with the least significant byte divided into a numeric digit and a sign. The sign occupies the least significant nibble of the byte and follows the conventions for PACKED decimal signs. |