NetBatch Manual

Job Planning, Submission, and Management
NetBatch Manual522460-004
4-44
Altering Job Attributes
Altering Job Attributes
The ALTER JOB command changes a job’s attributes. For example:
3} INFO JOB COBOL-COMPILE, OUT, PRI
JOB ATTRIBUTES for COBOL-COMPILE
jobnumber: 17
out: \MELBDEV.$S.#COBOL
pri: 119
4} ALTER JOB 17, OUT $DATA7.PURGE.CMPL3, PRI 149
Job COBOL-COMPILE Jobnumber 17 altered
5} INFO JOB COBOL-COMPILE, OUT, PRI
JOB ATTRIBUTES for COBOL-COMPILE
jobnumber: 17
out: \MELBDEV.$DATA7.PURGE.CMPL3
pri: 149
The ALTER JOB command updates a job’s description in the scheduler database.
Whether the updated description applies to the job when it runs, however, depends on
the job’s processing state.
If the job’s state is EVENT, READY, RUNNEXT, RUNNOW, SPECIAL-n, TAPE, or
TIME, the updated description applies when the job runs.
If the job’s state is EXECUTING, OVER LIMIT, or SUSPENDED, the only attributes
that can apply are DESCRIPTION, HOLDAFTER, IFFAILS, LIMIT, PURGE-IN-
FILE, RESTART, SAVEABEND, STALL, and STOP-ON-ABEND. If the job is also
recurrent, the updated description applies in full the next time the job runs. (A
recurrent job has the CALENDAR or EVERY attribute.)
Overriding Job Dependencies, Timing Attributes, and Selection
Priority
NetBatch supervisors can use the RUNNEXT JOB and RUNNOW JOB commands to
override jobs’ dependencies, timing attributes, and selection priorities. The commands
have the effect of promoting the specified jobs to run before all others in their
respective classes.
RUNNEXT JOB
The RUNNEXT JOB command makes the scheduler run a job immediately when an
executor associated with the job’s class is available. This example shows the
command making the scheduler run job C before job B instead of after it:
47} STATUS JOB *, SELPRI
JOB JOBNAME USERID SEL STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
758 A 255,205 7 EXECUTING DEFAULT
759 B 255,205 6 READY DEFAULT
760 C 255,205 1 READY DEFAULT
48} RUNNEXT JOB C
Job C job number 760 will run next