NetBatch Manual

Job Planning, Submission, and Management
NetBatch Manual522460-004
4-30
Specifying a Job’s Tape Drives Requirements
Example
This example shows the effect of the IFFAILS, RESTART, STALL, and STOP-ON-
ABEND attributes on two recurrent jobs whose CPU fails. The jobs have the same
RESTART, STALL, and STOP-ON-ABEND attributes, but different IFFAILS attributes.
Job A has the IFFAILS OFF attribute, so the scheduler puts the job in the SPECIAL-6
state after failure. Job B has the IFFAILS ON attribute, which causes the scheduler to
put the job in the TIME state after failure.
23> TIME
April 1, 1993 11:49:22
24> BATCHCOM $ZBAT; SUBMIT JOB A, IN DELAY10, EVERY 7 DAYS,
IFFAILS OFF, RESTART OFF, STALL OFF, STOP-ON-ABEND ON
Job A job number 466 submitted
25> BATCHCOM $ZBAT; SUBMIT JOB B, LIKE A, IFFAILS ON
Job B job number 467 submitted
26> BATCHCOM $ZBAT; STATUS JOB *
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
466 A 255,255 206 EXECUTING DEFAULT
467 B 255,255 208 EXECUTING DEFAULT
27> STATUS *, GMOMJOBID $ZBAT.466
Process … Program file Hometerm
$Z204 3,12 … $SYSTEM.SYS00.TACL $ZBAT
3,13 … $SYSTEM.SYS00.DELAY $ZBAT
28> STATUS *, GMOMJOBID $ZBAT.467
Process … Program file Hometerm
$Z205 3,11 … $SYSTEM.SYS00.TACL $ZBAT
3,14 … $SYSTEM.SYS00.DELAY $ZBAT
29> DIVER /CPU 3/
PROCESSOR FAILURE: 3
30> BATCHCOM $ZBAT; STATUS JOB *
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
466 A 255,255 206 6:Fail RsOff DEFAULT
467 B 255,255 208 08APR93 DEFAULT
Specifying a Job’s Tape Drives Requirements
The TAPEDRIVES job attribute specifies how many tape drives a job needs when it
runs. The scheduler assesses tape drive availability before job startup by comparing
the number of drives the job needs with the drives available. (“Drives available” is the
value of the TAPEDRIVES scheduler attribute unless the drive is in use.) The job is
eligible to run when enough drives are available.
Example
This example shows submission of two jobs, each of which requires two tape drives.
Job N runs when submitted and uses two of the three drives specified for the