NetBatch Manual

Commands
NetBatch Manual522460-004
6-51
ALLOW ERRORS Command
ALLOW ERRORS Command
Use the ALLOW ERRORS command to specify the number of errors allowed during
execution of commands contained in a BATCHCOM input file. BATCHCOM stops when
the number of errors exceeds the specified limit.
num
is an integer in the range 0 through 65535 specifying the number of errors allowed.
Considerations
The ALLOW ERRORS command is available to all users.
The ALLOW ERRORS command is effective only when included in a BATCHCOM
input file. The command has no effect when entered interactively.
If you do not specify an explicit ALLOW ERRORS command in a BATCHCOM
input file, the implicit command ALLOW 0 ERRORS applies.
The ALLOW ERRORS command applies only to events generating error
messages (prefix nnnn-E). It does not apply to events generating informational
messages (prefix nnnn-I) or warning messages (prefix nnnn-W). For details of
NetBatch messages, see Appendix A, Messages.
When no more than num errors occur during command execution, BATCHCOM stops
with completion code 1 (normal, voluntary termination with warning diagnostics). When
the number of errors exceeds num, BATCHCOM stops with completion code 2
(abnormal, voluntary termination with fatal errors or diagnostics).
Example
This example shows BATCHCOM executing or trying to execute these commands from
the file INFILE:
ALLOW 2 ERRORS
SUBMIT JOB A, IN A, OUT $S.#A, AT 20:30
SUBMIT JOB B, IN B, OUT $S.#B, CLASS OPS
SUBMIT JOB C, IN C, OUT $S.#C, AFTER 23:00
SUBMIT JOB D, IN D, OUT $S.#D, TAPDRIVES 1
SUBMIT JOB E, IN E, OUT $S.#E
The errors generated by the SUBMIT JOB commands show the effect of the ALLOW
ERRORS command. The SHOW ERRORS command allows two errors, which causes
ALLO[W] num ER[RORS]
Note. HP recommends you specify an error limit for all BATCHCOM processes that are part of
multiprocess jobs whose attributes include STOP-ON-ABEND ON. By specifying a limit
covering all expected errors, you can prevent the scheduler from stopping jobs unnecessarily.