COBOL Manual for TNS and TNS/R Programs
Debugging Tools
HP COBOL Manual for TNS and TNS/R Programs—522555-006
15-8
CROSSREF Utility Program
Regarding Figure 15-3 and Figure 15-3:
•
You can turn on the INSPECT attribute in any of these ways:
°
Compile the program without a NOINSPECT directive (described in INSPECT
and NOINSPECT).
°
Compile the program with a SAVEABEND directive (described in SAVEABEND
and NOSAVEABEND).
°
Set the INSPECT attribute in the Binder or linker.
°
Use the PARAM INSPECT ON command in the command interpreter
environment before running the process
°
Specify INSPECT ON as a run option in the RUN command that initiates the
process.
•
Visual Inspect is available if you established a connection to it before the process
entered debugging mode.
CROSSREF Utility Program
The CROSSREF utility, with the help of the COBOL85 compiler, produces a cross-
reference listing of selected types of identifiers (including literals), showing where they
occur in a program and how the program uses them. The CROSSREF utility is
interactive, and is more efficient and flexible than the CROSSREF directive, which also
produces a cross-reference listing.
The CROSSREF directive produces one cross-reference listing for each program unit
in a source file. The CROSSREF utility allows you to generate a listing of the identifiers
from one or more program units. Both the CROSSREF directive and the CROSSREF
utility allow you to restrict the types of identifiers to be reported, but only the
CROSSREF utility allows you to explicitly include and exclude individual data names.
Topics:
•
Running the CROSSREF Utility
•
Specifying Directives and a Default COPY Library
•
Specifying Certain Identifier Types Only
For complete information about the CROSSREF utility, see the CROSSREF Manual.
For information about the CROSSREF directive, see CROSSREF and
NOCROSSREF.
Note. This topic applies only to the COBOL85 compiler. You cannot use the CROSSREF utility
program with the NMCOBOL compiler, because the NMCOBOL compiler does not produce a
cross-reference listing. If you need a cross-reference listing for a native HP COBOL program,
use the noft utility with the XREFPROC flag (see the nld Manual).