FORTRAN Reference Manual
Compiler Directives
FORTRAN Reference Manual—528615-001
10-23
ERRORS Compiler Directive
PREVERR to display other error messages and their source text in the same 
manner.
You can assign the NEXTERR and PREVERR macros to function keys instead of 
entering them on the TEDIT command line. For example, in the preceding 
FIXERRS command, the commands part could be a TEDIT USE command that 
references a TEDIT profile that assigns NEXTERR and PREVERR to function 
keys.
NEXTERR and PREVERR are distributed as part of TACL; you can find them in 
the TACL directory named UTILS:FIXERRS. Normally, you don’t need to specify a 
name qualifier or any HOME or USE command to use these macros.
Example
?ERRORFILE errfile
ERRORS Compiler Directive
The ERRORS directive sets the maximum number of errors for a compilation. When 
the total number of error messages issued during the compilation (warning messages 
are not counted) exceeds the value you specify in the directive, the compiler stops 
without processing the remainder of the source input.
The default is ERRORS 100.
number
is an unsigned integer in the range 0 through 32767.
Considerations
•
The ERRORS directive must appear on the FORTRAN command line following the 
semicolon after the object file name, or in the source input file before the first 
FORTRAN source statement. If you specify an ERRORS directive after the first 
FORTRAN statement, the compiler issues an error message and ignores the 
directive.
•
If you supply two or more properly placed ERRORS directives, the compiler uses 
the first one and issues a warning message for each of the others.
•
The ERRORS directive is useful when you suspect something is wrong with your 
source input file. You could specify ERRORS 10, for example, and not waste time 
trying to compile a bad input file. Limiting the errors can be useful when you are 
converting a FORTRAN source program from another system.
ERRORFILE number










