TAL Reference Manual
Compiler Directives
TAL Reference Manual—526371-001
16-35
Usage Considerations
file-name
is the name of either:
•
An existing error file created by ERRORFILE. Such a file has file code 106 (an
entry-sequenced disk file used only with the TACL FIXERRS macro). The
compiler purges any data in it before logging errors and warnings.
•
A new error file to be created by ERRORFILE if errors occur.
If a file with the same name exists but the file code is not 106, the compiler terminates
compilation to prevent overwriting the file.
You can specify partial file names as described in Appendix E in the
TAL Programmer’s
Guide. The compiler uses the current default volume and subvolume names as
needed. For this directive, the compiler does not use TACL ASSIGN SSV information
to complete the file name.
define-name
is the name of a TACL MAP DEFINE that refers to an error file.
assign-name
is a logical file name you have equated with an error file by issuing a TACL
ASSIGN command.
Usage Considerations
ERRORFILE can appear in the compilation command or in the source code before any
declarations.
The compiler writes a header record to the error file and then writes a record for each
error or warning. Each record contains information such as:
•
The location of the error or warning—source file name, edit line number, and
column number
•
The message text of the error or warning
At the end of the compilation, the compiler prints the complete name of the error file
in the trailer message of the compilation listing.
VST1618.vsd
ERRORFILE
assign-name
define-name
file-name