COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-75
ERRORFILE
ERRORFILE
ERRORFILE specifies an error-logging file that is to contain information about any
compilation errors or warnings. The error-logging file is not an EDIT file. You can use it
only with the FIXERRS Macro.
file-name
is the name of the error-logging file. It must be a disk file name.
define-name
is the name of a MAP DEFINE that refers to a disk file. The compiler uses this file
as the error-logging file.
If the specified file does not already exist, the compiler creates an entry-sequenced file
using the specified file name and the file code 106.
If the specified file is an existing error file identified by file code 106, the compiler
replaces the contents of the existing file with the new error file.
If the specified file is an existing file but is not an error file, the compiler terminates
compilation and displays the message
ERRORFILE not created
The error file contains one record for each error or warning message that the compiler
found during compilation. Each error record contains this information:
•
The fully qualified, local file name of the file in which the compiler found the error or
warning
If you specified a DEFINE name for the name of the source file, the name of the
file to which the DEFINE evaluated appears in this entry.
•
The EDIT line number in which the error or warning occurred
•
The column number in the line where the compiler detected the error or warning
•
The error or warning message text
Default: None
Placement: Either on the compiler command line or in the source file before the
Identification Division.
Scope: Applies to the compilation unit
Dependencies: None
ERRORFILE file-name
define-name
VST281.vsd