Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Specifying compiler options under UNIX

The compiler is installed and set up with default compiler options. While installing the compiler, a system programmer can fix compiler option settings to ensure better performance or maintain certain standards. You cannot override any compiler options that your site has fixed.

For options that are not fixed, you can override the default settings by specifying compiler options in any of three ways:

The compiler recognizes the options in the above order of precedence, from highest to lowest. The order of precedence also determines which options are in effect when conflicting or mutually exclusive options are specified. When you compile using the cob2 command, compiler options are recognized in the following order of precedence, from highest to lowest:

  1. Installation defaults fixed as nonoverridable
  2. The values of BUFSIZE, LIB, SQL, OUTDD, and SIZE options in effect for the first program in a batch compilation
  3. The values that you specify on PROCESS or CBL statements in COBOL source programs
  4. The values that you specify in the cob2 command's -q option string
  5. The values that you specify in the COBOPT environment variable
  6. Installation defaults that are not fixed

Restrictions:

related references  
Conflicting compiler options  
Compiler options


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)