──┬─ $ ──┬─ ERRORLIMIT ── = ── <integer constant> ─────────────────────┤ └─ $$ ─┘
Explanation
This control option sets the error limit for job compilation to the value of the integer constant. Job compilation is terminated if the number of errors detected by the WFL compiler becomes greater than or equal to the error limit. Note that this option affects compilation, not execution, of a job. A job containing even one error is not executed, regardless of the error limit setting.
If no ERRORLIMIT option appears, the default error limit is 100 unless the job was started through CANDE. If the job was started through CANDE, the default error limit is 6.
More than one ERRORLIMIT option can be included in the job. In this case, the error limit is changed whenever the option appears, and the next time the compiler encounters an error, it compares the new error total with the current error limit to determine whether to terminate compilation.
Example
Compilation of the following job is terminated if the number of errors detected becomes greater than or equal to 50:
?BEGIN JOB RUNPROG; $ERRORLIMIT = 50; RUN OBJECT/PROG1; RUN OBJECT/PROG2; . . . ?END JOB.