NetBatch Manual
Attributes
NetBatch Manual—522460-004
7-65
IFFAILS Job Attribute
•
The cause of the failure (for example, the job’s executor-program process
abends)
For more information, see Table 4-5, Job States on Process Failure, on page 4-28,
RESTART Job Attribute on page 7-95, STALL Job Attribute on page 7-102, and STOP-
ON-ABEND Job Attribute on page 7-105.
ON
causes the scheduler to reschedule the job if it fails and is recurrent, depending on
the values of the job’s RESTART, STALL, and STOP-ON-ABEND attributes. For
more information, see Table 4-5, Job States on Process Failure, on page 4-28.
Considerations
•
The scheduler treats a job submitted without the IFFAILS attribute like a job
with
the attribute IFFAILS OFF.
•
The IFFAILS attribute has no effect on nonrecurrent jobs (jobs whose
attributes do
not include CALENDAR or EVERY).
•
For help when setting the IFFAILS, RESTART, STALL, and STOP-ON-
ABEND
attributes, see the decision chart in Section 4, Job Planning, Submission,
and Management.
Example
This example shows the effect of the IFFAILS attribute on two recurrent jobs whose
executor programs abend. The jobs have the same RESTART, STALL, and STOP-ON-
ABEND attributes but different IFFAILS attributes. Job X has the IFFAILS OFF
attribute, so the scheduler puts the job in the SPECIAL-6 state after failure. Job Y has
the IFFAILS ON attribute, which causes the scheduler to put the job in the TIME state
after failure.
> TIME
November 5, 1993 15:20:43
> FUP COPY DELAY05
DELAY 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 432 submitted
> BATCHCOM $ZBAT; SUBMIT JOB Y, LIKE X, IFFAILS ON
Job Y job number 433 submitted
> BATCHCOM $ZBAT; STATUS JOB *
JOB STATUS
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
432 X 205,70 399 EXECUTING DEFAULT
433 Y 205,70 401 EXECUTING DEFAULT
> STATUS *, GMOMJOBID $ZBAT.432
Process … Program file Hometerm
… $SYSTEM.SYS00.DELAY $ZBAT