You are here: Field Types > Binary

Binary

Reads unsigned binary numeric data, corresponding to the PL/1 field type, fixed binary or the COBOL data type, COMPUTATIONAL-1.

Binary is interpreted as a number with the most significant byte first (left most) and the least significant byte last, as is the norm for mainframe data. This field type is not appropriate for Micro binary (integer) fields, which usually store the least significant byte first. Micro Binary is supported via the micro field type. For more information see Micro.

The length of the binary field type is a maximum of 8 bytes. The number of decimals is the implied number of decimal digits and cannot exceed the number of digits specified by the length.

Binary fields of even length are treated as signed binary fields (two’s compliment), unless the “Unsigned” data field attribute is unchecked. All odd lengths are treated as unsigned fields (implicit high-order zero bytes are added). For more information on the Unsigned field attribute, see Numeric Fields.