COBOL Manual for TNS/E Programs (H06.03+)

Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS/E Programs520347-003
22-46
Diagnostic Messages
Compiler Failure Messages
A failure message reports a condition so severe that the compiler is unable to continue.
Any code that the compiler has already generated during the current compilation
session is lost. You cannot suppress failure messages.
Error Files
The compiler directive ERRORFILE causes the compiler to document its warning and
error messages in an error file. For each compiler warning or error message, the
compiler writes one record to the error file. Each record contains this information:
The fully qualified, local file name of the source file in which the warning or error
occurred
If you specified a DEFINE name for the name of the source file, then this entry is
the file name that the DEFINE produced.
The line number that the HP editor (EDIT or TEDIT) assigned to the line in which
the warning or error occurred
The column number in which the warning or error occurred
The warning or error message text
The error file is not an EDIT file; it is of type 106. You can use it only with the TACL
macro FIXERRS. For information about the FIXERRS macro, see FIXERRS Macro.
In this example, the error file is ERRORS on the default volume and subvolume:
90> ECOBOL /IN XYZ, OUT $SPX/ XYZOBJ; ERRORFILE ERRORS
If the file ERRORS does not exist, the compiler creates an entry-sequenced file of type
106 and names it ERRORS. If ERRORS does exist, and is of type 106, the compiler
replaces its contents with the new error file. If ERRORS exists but is not of type 106,
the compiler terminates with the message:
ERRORFILE not created
Example 22-18. Failure Message
*** Failure:
--> message-text [Warning message-number]
The brackets are part of the message, not indicators that the bracketed material is optional.