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:
Restrictions:
Neither the separate SQL precompiler nor the integrated SQL coprocessor run under z/OS UNIX.
You can use the COBOPT environment variable, which provides a capability that is comparable to OPTFILE, instead.
related tasks
Specifying compiler options with the PROCESS (CBL) statement
Setting environment variables under UNIX
Compiling and linking with the cob2 command
related references
Conflicting compiler options
Compiler options