COBOL Manual for TNS and TNS/R Programs
Debugging Tools
HP COBOL Manual for TNS and TNS/R Programs—522555-006
15-10
FIXERRS Macro
Specifying Certain Identifier Types Only
You can instruct CROSSREF to collect information about only certain types of
identifiers. This example instructs CROSSREF to report only identifiers of conditions
and procedure (section and paragraph) names:
CROSSREF - CROSS-REFERENCE PROGRAM - T9622D20 - (8JUN92) ...
&SET LANGUAGE COBOL85
&SET CLASS CONDITIONS, PROGLABELS
&SCAN PROBE
&GENERATE /OUT $S.#CROS/
&EXIT
FIXERRS Macro
FIXERRS is a TACL macro that helps you find and fix syntax errors in your source file.
To use the FIXERRS TACL macro to fix errors in a source file, you must compile your
program with the directive ERRORFILE. You can then use FIXERRS with the error-
logging file produced by that directive.
The FIXERRS TACL macro starts a two-window TEDIT session and displays an error
message on the top line of the screen with the corresponding source text in the
remaining lines. When you start FIXERRS, the cursor is positioned at the first error in
the source text.
To start FIXERRS enter:
error-file
is the name of the error file produced by the compiler. This file has a file code of
106.
Example 15-3. Setting the Default COPY Library
CROSSREF - CROSS-REFERENCE PROGRAM - T9622D20 - (8JUN92) ...
&SET LANGUAGE COBOL85
&SET LIBRARY MYLIB
&SET DIRECTIVES "ANSI;SETTOG 1"
&SCAN PROBE
&GENERATE /OUT $S.#CROS/
&EXIT
FIXERRS
tedit-command
;
error-file
VST372.vsd