NetBatch Manual

Attributes
NetBatch Manual522460-004
7-81
MAX-PRI Scheduler Attribute
MAX-PRI Scheduler Attribute
The MAX-PRI scheduler attribute specifies an upper execution-priority limit for
executor-program processes and processes they create. The attribute overrides the
PRI job attribute, thereby enabling you to prevent processes from executing at a
priority higher than appropriate for your system.
number
is a number in the range 1 through 199 (1 is lowest) specifying the execution-
priority limit.
Considerations
A scheduler adopts the attribute MAX-PRI 199 by default when cold started.
The scheduler alters the priority of a process to that specified by MAX-PRI
when
the priority returned in system message -112 (job process creation) exceeds
the MAX-PRI value. Regardless, MAX-PRI exercises no further control over the
priority.
Example
This example shows the effect of the MAX-PRI attribute on a job. The scheduler alters
the priority of the job’s executor-program process and the program’s child processes to
the priority specified by MAX-PRI. The attribute has no effect when the priority of the
executor-program process is later changed with the TACL ALTPRI command.
> FUP COPY INFILE
DELAY /NAME $D1, NOWAIT, PRI 160/ 3 MINS
DELAY /NAME $D2, NOWAIT, PRI 170/ 3 MINS
DELAY /NAME $D3, PRI 180/ 3 MINS
3 RECORDS TRANSFERRED
> BATCHCOM $ZBAT; INFO SCHEDULER, MAX-PRI, DEFAULT-PRI
SCHEDULER ATTRIBUTES
max-pri: 100
default-pri: 90
> BATCHCOM $ZBAT; SUBMIT JOB, EXECUTOR-PROGRAM TACL, IN
INFILE, NAME $TEST, PRI 199
Job ZBAT-0017 Jobnumber 17 submitted
> BATCHCOM $ZBAT; STATUS JOB 17, DETAIL .
.
Program … Pid … Pri …
TACL … $TEST … 100 …
DELAY … $D3 … 100 …
DELAY … $D2 … 100 …
DELAY … $D1 … 100 …
> ALTPRI $TEST, 199
> BATCHCOM $ZBAT; STATUS JOB 17, DETAIL .
M[AX]-[PRI] number