COBOL Manual for TNS/E Programs (H06.03+)
Debugging Tools
HP COBOL Manual for TNS/E Programs—520347-003
15-3
FIXERRS Macro
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.
tedit-command
is the TEDIT command that you want to execute at the start of the FIXERRS
session.
You can move from error to error using the NEXTERR and PREVERR commands on
the TEDIT command line. NEXTERR displays the error following the currently
displayed error; PREVERR displays the error preceding the currently displayed error.
When you enter PREVERR at the beginning of the error file or NEXTERR at the end of
the error file, FIXERRS displays the message:
There are no more errors
When you enter PREVERR after you have corrected errors in the file, the compiler
positions you at the line and column on which the error was originally reported. This
line and column number might be invalid after you correct the error.
FIXERRS
tedit-command
;
error-file
VST372.vsd










