Compaq COBOL AAQ2G1FTK User Manual

Page 61

Advertising
background image

Developing Compaq COBOL Programs

1.3 Developing Programs on OpenVMS Alpha

1.3.2.4 Separately Compiled Programs

If a compilation unit consists of multiple separately compiled programs (SCPs),
by default the Compaq COBOL compiler produces a single object file that consists
of a single module with multiple embedded procedures. This object file can be
inserted into an object library. If your build procedure requires that the linker
extract any part of the module, the linker must extract the entire object.

If you use /SEPARATE_COMPILATION on the compile command line Compaq
COBOL will compile multiple SCPs into a single object file that consists of a
concatenation of modules, each containing a single procedure. This object may
then be inserted into an object library from which the linker can extract just the
procedures that are specifically needed.

1.3.2.5 COBOL Qualifiers

COBOL options (also known as qualifiers or flags) control the way in which the
compiler processes a file. You can process your file with the COBOL command
alone or you can select options that offer you alternatives for developing,
debugging, and documenting programs.

If you compile parts of your program (compilation units) using multiple COBOL
commands, options that affect the execution of the program should be used
consistently for all compilations, especially if data will be shared or passed
between procedures.

Table 1–4 lists the COBOL command options and their defaults. For more
information about COBOL options, invoke online help for COBOL at the system
prompt.

Note

Brackets ( [ ] ) indicate that the enclosed item is optional. If you specify
more than one option for a single qualifier, you must separate each option
with a comma and enclose the list of options in parentheses.

Developing Compaq COBOL Programs 1–31

Advertising