Understanding Compiler Output
The compiler can be directed to produce a selection of printed reports.
By default, this output will be directed to the system printer file QSYSPRT.
The output can include:
- A summary of command options
- An options listing, which is a listing of options in effect
for the compilation. Use OPTION(*OPTIONS).
- A source listing, which
is a listing of the statements contained in the source program. Use OPTION(*SOURCE).
- A verb usage listing,
which is a listing of the COBOL verbs and the number of times each verb
is used. Use OPTION(*VBSUM).
- A Data Division map,
which is a glossary of compiler-generated information about the data. Use
OPTION(*MAP).
- FIPS messages, which is a list of messages for a
FIPS COBOL subset, for any of the optional modules, for all of the obsolete
language elements, or for a combination of a FIPS COBOL subset, optional
modules and all obsolete elements. Refer to the information on the "FLAGSTD
Parameter" on page FLAGSTD Parameter for the specific options available
for FIPS flagging.
- A cross-reference listing. Use OPTION(*XREF).
- An imbedded error listing. Use OPTION(*IMBEDERR).
- Compiler messages (including diagnostic statistics).
- Compilation statistics.
- Module objects. Use the CRTCBLMOD command.
- Program objects. Use the CRTBNDCBL command.
The presence or absence
of some of these types of compiler output is determined by options specified
in the PROCESS statement or through the CRTCBLMOD or CRTBNDCBL command. The
level of diagnostic messages printed depends upon the FLAG option. The DBGVIEW
option dictates what kind of debug data is contained in the generated module
object or program object.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.