NetBatch Manual

Attributes
NetBatch Manual522460-004
7-111
TAPEDRIVES Scheduler Attribute
The scheduler calculates the number of tape drives available for use by
using its
TAPEDRIVES attribute to initialize an internal counter. When you submit
a job, the scheduler compares the number of drives required by the job with the
counter. The scheduler’s treatment of the job (assuming no other factors are
delaying job execution) depends on whether the number is:
°
Less than or equal to the counter. In this case, the scheduler runs the job
immediately and subtracts the number from the counter. When the job finishes,
the scheduler adds the number to the counter.
°
Greater than the counter, but no greater than the TAPEDRIVES
scheduler
attribute. In this case, the scheduler runs the job when the required
drives are available. The state of jobs waiting for tape drives is TAPE.
°
Greater than the TAPEDRIVES scheduler attribute. In this case, the
scheduler
never runs the job. To avoid this situation, do not specify more
drives for a job than are available to the scheduler. If the situation occurs, to
resolve it do one of:
Increase the number of drives specified by the TAPEDRIVES
scheduler
attribute
Reduce the number of drives required by the job
To display the number of tape drives configured for a scheduler and the
number in
use, use the STATUS SCHEDULER command.
Example
This example shows the configuration of a scheduler’s TAPEDRIVES attribute. The
example also shows the submission of a job whose tape drives requirement reduces
the available drives from three to one.
> BATCHCOM $ZBAT; INFO SCHEDULER, TAPEDRIVES
SCHEDULER ATTRIBUTES
tape-drives: 2
> TAPECOM STATUS
DEVICE TYPE VID STATE OPEN I/O EXC PROCESS-ID …
$TAPE1 NONE FREE
$TAPE2 NONE FREE
$TAPE3 NONE FREE
24> BATCHCOM $ZBAT; ALTER SCHEDULER, TAPEDRIVES 3
Scheduler altered
25> BATCHCOM $ZBAT; STATUS SCHEDULER
SCHEDULER STATUS
Process : \MELBDEV.$ZBAT Primary : 1,37 Backup : 3,27
Database: $DATA7.ZBAT
Logfile : $DATA7.ZBAT.LOGAAW
Time : 02OCT93 12:43:56
EXECUTORS JOBS CLASSES …
----------- --------------- -------- …
OFF 0 READY 0 OFF 0 …
ON 1 EXECUTING 0 ON 1 …