NetBatch Manual

Attributes
NetBatch Manual522460-004
7-96
RESTART Job Attribute
ON
causes the scheduler to restart the job if it stops with completion code 7 (restart
request sent to the scheduler) or terminates because of CPU failure. (This action
depends on the values of the job’s IFFAILS, STALL, and STOP-ON-ABEND
attributes.) For more information, see Figure 4-9 on page 4-29.
Considerations
The scheduler treats a job submitted without the RESTART attribute like a
job with
the attribute RESTART OFF.
The scheduler reexecutes a restarted job from the beginning of the job, not
from
where the job stopped.
There is no limit to the number of times the scheduler restarts a job while the
failure
condition continues.
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 RESTART attribute on two recurrent jobs whose
CPU fails. The jobs have the same IFFAILS, STALL, and STOP-ON-ABEND attributes,
but different RESTART attributes. Job X has the RESTART ON attribute, so the
scheduler puts the job in the READY state after failure. Job Y has the RESTART OFF
attribute, so the scheduler puts the job in the TIME state after failure.
> TIME
November 9, 1993 15:44:18
> FUP COPY DELAY05
DELAY 5 MINS
> BATCHCOM $ZBAT; SUBMIT JOB X, IN DELAY05, EVERY 1 DAYS,
RESTART ON, IFFAILS ON, STALL OFF, STOP-ON-ABEND ON
Job X job number 438 submitted
> BATCHCOM $ZBAT; SUBMIT JOB Y, LIKE X, RESTART OFF
Job Y job number 439 submitted
> BATCHCOM $ZBAT; STATUS JOB *
JOB STATUS
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
438 X 255,255 85 EXECUTING DEFAULT
439 Y 255,255 87 EXECUTING DEFAULT
> STATUS *, GMOMJOBID $ZBAT.438
Process … Program file Hometerm
$Z238 … $SYSTEM.SYS00.TACL $ZBAT
… $SYSTEM.SYS00.DELAY $ZBAT
> STATUS *, GMOMJOBID $ZBAT.439
Process … Program file Hometerm
$Z239 … $SYSTEM.SYS00.TACL $ZBAT
… $SYSTEM.SYS00.DELAY $ZBAT