-qmaxerr

Category

Error checking and debugging

@PROCESS

@PROCESS MAXERR(number, severity) | NOMAXERR

Purpose

Stops compilation when the number of error messages of a specified severity level or higher reaches a specified number.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-nomaxerr------------------------.   
>>- -q--+-maxerr--=--number--+----------+-+--------------------><
                             |    .-s-. |     
                             '-:--+-i-+-'     
                                  +-l-+       
                                  +-w-+       
                                  '-e-'       

Defaults

-qnomaxerr

Parameters

number
It specifies the maximum number of messages the compiler generates before it stops. number must be an integer with a value of 1 or greater.
The severity levels (from lowest to highest) are listed as follows. See Error severity for more information about these levels.
i
Informational messages.
l
Language-level messages, such as those produced under the -qlanglvl option.
w
Warning messages.
e
Error messages.
s
Severe error messages.

Usage

If the -qmaxerr option does not specify the severity level, it uses the severity that is in effect by the -qhalt option; otherwise, the severity level is specified by either -qmaxerr or -qhalt that appears last.

When -qflag is specified, -qmaxerr counts the messages that are allowed by the -qflag option.

When -qsuppress is specified, -qmaxerr does not count the messages that are censored by the -qsuppress option.

Examples

To stop compilation of myprogram.f when 5 error messages are encountered, enter the following command:
xlf myprogram.f -qmaxerr=5:e
To stop compilation of myprogram.f when 5 severe errors are encountered, enter the following command:
xlf myprogram.f -qmaxerr=5
To stop compilation of myprogram.f when 5 language level messages are encountered, enter the following command:
xlf myprogram.f -qmaxerr=5:l
or:
xlf myprogram.f -qmaxerr=5 -qhalt=l

Related information