NetBatch Manual

Commands
NetBatch Manual522460-004
6-125
RUNNEXT JOB Command
Example
This example illustrates the use of the RUN command during a BATCHCOM session:
2} RUN EDIT; GET $QA.TESTS.FILES; LIST ALL
TEXT EDITOR - T9601D20 - (01JUN93)
CURRENT FILE IS $QA.TESTS.FILES
1 FILES /OUT \MELBDEV.$ZTN0.#PTY4/ $NB.T9190MAN
*ADD
1 FILES /OUT \MELBDEV.$ZTN0.#PTY4/ $NB.T9190MAN
2 FILES /OUT \MELBDEV.$ZTN0.#PTY4/ $SYSTEM.SYSTEM
3 //
*EXIT
3}
RUNNEXT JOB Command
Use the RUNNEXT JOB command to make the scheduler run a job immediately when
an executor associated with the job’s class is available. The command overrides the
job’s dependencies, timing attributes, and selection priority.
file-name
specifies a command output file. The file can be a device, a process, or a disk file.
For a disk file, BATCHCOM appends output if the file exists, but creates an EDIT
file if the file does not exist. If you specify / OUT / (that is, omit file-name),
BATCHCOM suppresses output.
job-ID
specifies the name, number, or range of names of a job or jobs whose state is
EVENT, READY, RUNNOW, TAPE, or TIME. (job-ID cannot specify jobs whose
states are EXECUTING, OVER LIMIT, RUNNEXT, SPECIAL- n, or SUSPENDED.)
To specify a range of job names, use the asterisk (*) and question mark (?) wild-
card characters. An asterisk on its own specifies all jobs.
NOT
excludes jobs that satisfy the specified job-selection criterion.
filter
specifies one of these job-selection criteria (see STATUS JOB Command on
page 6-165):
A[TTACHMENT]-S[ET] [ ( user-ID ) ] attachment-set-ID
#CURRENT ]
CL[ASS] class-ID
RUNNE[XT] [ JOB ] [ / OU[T] [ file-name ] / ]
{ job-ID }
{ ( [ [NOT] job-ID ,]… [NOT] filter [ , [NOT] filter ]… )