NetBatch Manual

Commands
NetBatch Manual522460-004
6-126
RUNNEXT JOB Command
IN file-ID
STATE state
U[SER] user-ID
WAITO[N] master-job
Considerations
The RUNNEXT JOB command is available to NetBatch supervisors only.
A job whose state is EVENT has the WAITON attribute and does not run until
released by its masters. The RUNNEXT JOB command overrides the WAITON
attribute and makes the job eligible to run, regardless of the completion states of its
masters.
If several jobs from a class are in a RUNNEXT state, the scheduler selects them
based on their SELPRI attributes. Selection of jobs with the same SELPRI attribute
is by submission time on a first-in, first-out basis.
A job that is subject to a RUNNEXT JOB command does not run if either of these
conditions exists:
°
The job has the TAPEDRIVES attribute and requires more drives than are
available. For more information about this attribute, see TAPEDRIVES Job
Attribute on page 7-109 and TAPEDRIVES Scheduler Attribute on page 7-110.
°
The job’s class has the attribute INITIATION OFF. This attribute prevents jobs
belonging to the class from running. To make the jobs available for execution,
change the value of the INITIATION attribute to ON by using the ALTER
CLASS command.
The RUNNEXT JOB command, unlike RUNNOW JOB, does not make the
scheduler create a temporary executor.
You can omit the object keyword JOB from the RUNNEXT JOB command only
when JOB is the current assumed object. For more information, see ASSUME JOB
Command on page 6-72.
Examples
This example shows execution of a RUNNEXT JOB command and the resulting
scheduler log-file event:
> BATCHCOM $ZBAT; STATUS JOB *
JOB STATUS
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- --------------
70 FIRST 255,255 670 EXECUTING DEFAULT
71 SECOND 255,255 READY DEFAULT
72 THIRD 255,255 READY DEFAULT
> BATCHCOM $ZBAT; RUNNEXT JOB THIRD
Job THIRD Jobnumber 72 will run next
> BATCHCOM $ZBAT; STATUS JOB *
JOB STATUS