Compiling with Enterprise COBOL

Table 1 lists the Enterprise COBOL compiler options that have special relevance to converted programs.

Table 1. Key Enterprise COBOL compiler options for VS COBOL II programs
Enterprise COBOL compiler options Comments
PGMNAME If compiling with Enterprise COBOL, use the PGMNAME(COMPAT) option to ensure that program names are processed in a manner compatible with VS COBOL II (and COBOL/370).
TEST The syntax of the TEST option is different in Enterprise COBOL than in VS COBOL II.
  • In Enterprise COBOL V5 and V6.1, The TEST option has suboptions of EJPD | NOEJPD and SOURCE | NOSOURCE. You can specify whether or not source file information is stored in the object and whether or not JUMPTO and GOTO commands are enabled for use with Debug Tool.

    TEST without any suboptions gives you TEST(NOEJPD,SOURCE).

  • 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).
For more information about the TEST option, see TEST in the Enterprise COBOL for z/OS® Programming Guide.
LSACHECK It is recommended to use LSACHECK=ON, starting from development.