Making compiler options fixed
These sections explain why you might want to make a compiler option fixed, and explain how you can fix a compiler option and bypass a fixed option.
Enterprise COBOL can help you to set up your site's unique programming standards. For example, many sites might want RENT as the preferred compiler option setting, and so want to enforce its use.
With Enterprise COBOL, you use the IGYCDOPT program to specify that an option is fixed and cannot be changed or overridden at compile time. Then, at compile time, an attempt to override a fixed option results in a diagnostic message with a nonzero compiler return code.
When certain options are fixed for consistent usage, there might be special conditions that require the ability to bypass a fixed option. This change can be made by assembling a temporary copy of the IGYCDOPT program with different parameters. At compile time, programmers can use a JOBLIB or STEPLIB that contains the required IGYCDOPT module to bypass the fixed option.
For example, if you select the OPT=1
option to be fixed (indicating that
you always want the COBOL compiler to generate optimized object code),
and then need to exempt an application from this requirement, you
must reassemble the IGYCDOPT program after you remove the asterisk
parameter from the option. You then place the resulting IGYCDOPT module
in a temporary library to be accessed as a JOBLIB or STEPLIB at compile
time.