NetBatch Manual

Attributes
NetBatch Manual522460-004
7-64
IFFAILS Job Attribute
The scheduler treats a job submitted without the HOLDAFTER attribute like
a job
with the attribute HOLDAFTER OFF.
The scheduler puts a recurring job with the HOLDAFTER ON attribute in the
SPECIAL-1 state, not the TIME state, after execution finishes. (A recurring job has
the CALENDAR or EVERY attribute.)
To make a job in the SPECIAL-1 state eligible for execution, alter its HOLD
attribute from ON to OFF.
Example
This example shows the scheduler putting a job with the HOLDAFTER ON attribute on
hold when the job finishes executing:
28} SUBMIT JOB X, HOLDAFTER ON
Job X job number 401 submitted
29} INFO JOB X, HOLD, HOLDAFTER
JOB ATTRIBUTES for X
jobnumber: 401
hold-after: On
30} STATUS JOB X
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
401 X 205,70 226 EXECUTING DEFAULT
31} STATUS JOB X
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
401 X 205,70 226 1:Hold DEFAULT
32} INFO JOB X, HOLD, HOLDAFTER
JOB ATTRIBUTES for X
jobnumber: 401
hold: On
hold-after: On
IFFAILS Job Attribute
The IFFAILS job attribute determines whether the scheduler reschedules a recurrent
job that fails during execution. (A recurrent job is a job with the CALENDAR or EVERY
attribute.) The IFFAILS attribute works in combination with the job’s RESTART, STALL,
and STOP-ON-ABEND attributes (see Table 4-5, Job States on Process Failure, on
page 4-28).
OFF
causes the scheduler to treat the job according to:
The job’s RESTART, STALL, and STOP-ON-ABEND attributes
Whether the job is recurrent or nonrecurrent
IF[FAILS] { OF[F] | ON }