FORTRAN Reference Manual

Compiler Directives
FORTRAN Reference Manual528615-001
10-21
ERRORFILE Compiler Directive
Example
In the following example, toggle 2 is reset if ENV OLD is specified; toggle 2 is set if
ENV COMMON is specified:
?IFNOT 2
?ENV OLD
?ENDIF 2
?IF 2
?ENV COMMON
?ENDIF 2
...
?IFNOT 2
CALL FORTRANCOMPLETION( ... )
?ENDIF 2
?IF 2
CALL FORTRAN_COMPLETION_( ... )
?ENDIF 2
ERRORFILE Compiler Directive
The ERRORFILE directive saves the error messages from a compilation in a disk file.
The disk file can be used with the FIXERRS TACL command to quickly locate and
correct the errors in your source code.
file-name
is the name of the file to receive the error messages. It must be either a Guardian
file name or a DEFINE name known at compile time. Compile-time defaults are
supplied for any missing qualifiers. The file name must be specified. There is no
default file name.
ERRORFILE file-name