Start of change

Compiler option changes in Enterprise COBOL V6

The following options are added:
Table 1. Compiler options new with Enterprise COBOL Version 6
Compiler option Comments
Start of changeCOPYLOCEnd of change Start of changeNew option in Enterprise COBOL V6.2 with the service PTFs. It can be used to add either a PDSE (or PDS) dataset or z/OS® UNIX directory as an additional location to be searched for copy members during the library phase.End of change
Start of changeINITCHECKEnd of change Start of changeNew option in Enterprise COBOL V6.1 with the service PTFs and V6.2. It controls whether to check for uninitialized data items and issue warning messages when they are used without being initialized.End of change
Start of changeINITIALEnd of change Start of changeNew option in Enterprise COBOL V6.2 with the service PTFs. It causes a program and all of its nested programs to behave as if the IS INITIAL clause was specified on the PROGRAM-ID paragraph.End of change
Start of changeDEFINEEnd of change Start of changeNew option in Enterprise COBOL V6.2. It assigns a literal value to a compilation variable that is defined in the program by using the DEFINE directive with the PARAMETER phrase.End of change
Start of changeINLINEEnd of change Start of changeNew option in Enterprise COBOL V6.1 with the service PTFs and V6.2. It controls the compiler to consider whether to inline procedures referenced by PERFORM statements in the source program. End of change
Start of changeNUMCHECKEnd of change Start of changeNew option in Enterprise COBOL V6.1 with the service PTFs and V6.2. It controls whether to generate implicit numeric class tests for zoned decimal and packed decimal data items that are used as sending data items, and whether to generate SIZE ERROR checking for binary data items.End of change
Start of changePARMCHECKEnd of change Start of changeNew option in Enterprise COBOL V6.1 with the service PTFs and V6.2. It tells the compiler to generate an extra data item following the last item in WORKING-STORAGE. This buffer data item is then used at run time to check whether a called subprogram corrupted data beyond the end of WORKING-STORAGE.End of change
SUPPRESS New option in Enterprise COBOL V6.1. It controls whether to ignore the SUPPRESS phrase of COPY statements.
VSAMOPENFS New option in Enterprise COBOL V6.1. It affects the user file status reported from successful VSAM OPEN statements that require verified file integrity check.

The following options are modified:

Table 2. Compiler option changed with Enterprise COBOL Version 6
Compiler option Comments
Start of changeAFPEnd of change Start of changeIt controls the compiler usage of the Additional Floating Point (AFP) registers that are provided by z/Architecture® processors.
  • Start of changeIn Enterprise COBOL V6.1, AFP(VOLATILE) is the default.End of change
  • Start of changeIn Enterprise COBOL V6.2, AFP(NOVOLATILE) is the default.End of change
End of change
Start of changeARCHEnd of change Start of changeIt specifies the machine architecture for which the executable program instructions are to be generated.
  • Start of changeIn Enterprise COBOL V6.1, ARCH(7) is the default. End of change
  • Start of changeIn Enterprise COBOL V6.2, a new higher level of ARCH(12) is accepted, and ARCH(7) is still the default. End of change
End of change
Start of changeMAXPCFEnd of change Start of changeNew option. It instructs the compiler not to optimize code if the program contains a complexity factor greater than n.Start of change
  • Start of changeIn Enterprise COBOL V6.1, MAXPCF(60000) is the default.End of change
  • Start of changeIn Enterprise COBOL V6.2, MAXPCF(100000) is the default.End of change
End of change End of change
Start of changeNOSTGOPTEnd of change Start of changeIn Enterprise COBOL V6.1, data items can get optimized with OPT(2) even when NOSTGOPT was in effect. In Enterprise COBOL V6.1 with the service PTFs and V6.2, NOSTGOPT was changed so that no optimization of storage or data items occurs even with OPT(2). This is especially helpful for WORKING-STORAGE eye-catchers.End of change
Start of changeRULESEnd of change Start of changeIn Enterprise COBOL V6.2 with PTFs installed, the following new suboptions are added to the RULES compiler option:
  • OMITODOMIN | NOOMITODOMIN tells the compiler whether to issue warning messages for any OCCURS DEPENDING ON clauses that are specified without integer-1 (the minimum number of occurrences).
  • UNREF | NOUNREFALL | NOUNREFSOURCE tells the compiler whether to issue warning messages for unreferenced data items, and to control whether the reporting is done only for data items not declared in a copy member (NOUNREFSOURCE) or all data items (NOUNREFALL).
End of change
Start of changeSSRANGEEnd of change Start of changeNew suboptions MSG and ABD are added to the SSRANGE compiler option in V6.1 with the service PTFs and V6.2 to control the runtime behavior of the COBOL program when a range check fails.End of change
TEST In Enterprise COBOL V6.2, new suboptions SEPARATE and NOSEPARATE are added to the TEST compiler option to control program object size on disk while retaining debugging capability. In addition, new combinations of suboptions are supported in both the TEST and NOTEST compiler options, including TEST(NODWARF), TEST(SEPARATE), and NOTEST(DWARF,SOURCE).
LANGUAGE

To change to uppercase English or Japanese compiler messages in COBOL V6, in addition to using the LANGUAGE compiler option, you must also set the Language Environment® runtime option NATLANG at compile time. We recommend using CEEOPTS DD in the compile JCL.

For example, to change messages to Japanese, use the LANGUAGE(JA) compiler option and also specify the NATLANG LE runtime option at compile time:
//CEEOPTS DD * 
          NATLANG(JPN)
/*

The following option is removed:

Table 3. Compiler option not available in Enterprise COBOL Version 6
Compiler option Comments
LVLINFO Installation option removed. The build level information is put where LVLINFO used to be, and the SERVICE compiler option can be used for user service level information in place of LVLINFO.
Start of changeZONECHECKEnd of change Start of changeIn Enterprise COBOL V6.1 with the service PTFs and V6.2, ZONECHECK is deprecated but is tolerated for compatibility, and it is replaced by NUMCHECK(ZON).End of change

For a detailed list of options supported for the various compiler versions, see Option comparison.

For detailed descriptions of all options, see the Enterprise COBOL Programming Guide.

End of change