NetBatch Manual

Attributes
NetBatch Manual522460-004
7-106
STOP-ON-ABEND Job Attribute
Do not use STOP-ON-ABEND for NBEXEC jobs. NBEXEC always terminates on
an untrapped error condition.
For help when setting the IFFAILS, RESTART, STALL, and STOP-ON-ABEND
attributes, see Figure 4-9 on page 4-29.
Example
This example shows the effect of the STOP-ON-ABEND attribute on two recurrent jobs
whose child processes stop because of CPU failure. The jobs have the same IFFAILS,
RESTART, and STALL attributes, but different STOP-ON-ABEND attributes. Job X has
the STOP-ON-ABEND ON attribute, so the scheduler puts the job in the SPECIAL-6
state after failure. Job Y has the STOP-ON-ABEND OFF attribute, so the scheduler
puts the job in the TIME state after failure.
> TIME
November 10, 1993 14:43:15
> FUP COPY DELAY05
DELAY /CPU 3/ 5 MINS
> BATCHCOM $ZBAT; SUBMIT JOB X, IN DELAY05, EVERY 1 DAYS,
IFFAILS OFF, RESTART OFF, STALL OFF, STOP-ON-ABEND ON
Job X job number 445 submitted
> BATCHCOM $ZBAT; SUBMIT JOB Y, LIKE X, STOP-ON-ABEND OFF
Job Y job number 446 submitted
> BATCHCOM $ZBAT; STATUS JOB *
JOB STATUS
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
445 X 255,255 1 EXECUTING DEFAULT
446 Y 255,255 3 EXECUTING DEFAULT
> STATUS *, GMOMJOBID $ZBAT.445
Process … Program file Hometerm
$Z333 … $SYSTEM.SYS00.TACL $ZBAT
… $SYSTEM.SYS00.DELAY $ZBAT
> STATUS *, GMOMJOBID $ZBAT.446
Process … Program file Hometerm
$Z334 … $SYSTEM.SYS00.TACL $ZBAT
… $SYSTEM.SYS00.DELAY $ZBAT
> DIVER /CPU 3/
PROCESSOR FAILURE: 3
> BATCHCOM $ZBAT; STATUS JOB *
JOB STATUS
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
445 X 255,255 1 6:Fail RsOffDEFAULT
446 Y 255,255 3 11NOV93 DEFAULT