Causes the Compiler to abort when the specified number of errors have been produced.
>>-.---.-.-----MAX-ERROR--"err-cnt-.-------.-"-.->< +-/-+ | +-svrty-+ | +-NOMAX-ERROR-------------------------+
err-cnt | The maximum number of errors | ||||||||||
svrty | The minimum level of severity to be counted. Only messages of the severity
specified and greater are counted. One of:
If omitted, assumes F. |
Default: | NOMAX-ERROR |
Phase: | Syntax check |
$SET: | Any |
The Compiler also accepts the directive-name without a hyphen; that is MAXERROR.
If the maximum number of messages of at least the specified severity is reached then the compilation stops. The messages are only counted if produced and after any modification to the severity of the message.
Specifying the directive:
MAX-ERROR"100 E"
causes the compilation to terminate when 101 messages of severity E or S have been produced.