LegacyJ CICS and COBOL technology for the J2EE Enterprise Environment

Products     Services     Support     Sales     News     Partners

  

Academic
Programs

Customer
Information

News &
Information

Technical
Information

White
Papers

About Us

LegacyJ FAQ

On the Mainframe we truncate Binary COMP Fields, what is the max value?

The maximum values that can be stored in a binary half-word are:

num-comp-4   pic  9(4) comp   value 65535.  | max value
num-comp-s4  pic s9(4) comp   value 32767.  | max value

Be sure to set TRUNCATE BINARY and COMP IS BINARY in Properties > Cobol Compiler Settings > Data Types.  

 

PERCobol

Home         About Us         Privacy        Legal        
© Copyright LegacyJ Corp. 2007
All Rights Reserved.

All trademarks are the properties of their respective owners or licensers.