Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


BINARY

BINARY affects the representation of binary data items.

BINARY option syntax
Read syntax diagramSkip visual syntax diagram           .-NATIVE-.    
>>-BINARY(-+-S390---+-)----------------------------------------><
 

Default is: BINARY(NATIVE)

Abbreviations are: None

Specify BINARY(NATIVE) to use the native binary representation format of the platform. For COBOL for Windows, this is little-endian format (most significant digit at the highest address).

BINARY(S390) indicates that BINARY, COMP, and COMP-4 data items are represented consistently with zSeries, that is, in big-endian format (least significant digit at the highest address).

However, COMP-5 binary data and data items defined with the NATIVE keyword on the USAGE clause are not affected by the BINARY(S390) option. They are always stored in the native format of the platform.

related references
Appendix B. zSeries host data format considerations


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)