Alerting to assembly warnings

Optionally, you can increase the final return code from an assembly to 8 when the highest severity message or MNOTE is 7 or less, by specifying the assembler FAIL option together with an appropriate sub-option and value. This can be useful where it is felt that attention should be brought to assemblies which include relatively low severity messages which may otherwise be disregarded.

It is also possible to use the FAIL option together with the MAXERRS(maxerrs) sub-option to terminate an assembly early after 'maxerrs' errors of severity 8 or higher have been encountered. This can be useful for terminating conditional assembly loops and early detection of small mistakes which may otherwise result in numerous error messages. The default value is MAXERRS(500). HLASM also issues message ASMA257U.

See also FAIL.