NetBatch Manual
Attributes
NetBatch Manual—522460-004
7-101
SELPRI Job Attribute
security: "GOGO"
temporary: Off
0535-I Your user code does not give you access to
(SUPER.FPP)MNGRS data
SELPRI Job Attribute
The SELPRI job attribute specifies the selection priority of a job in its class.
number
is a number in the range 0 through 7 (0 is lowest) specifying the selection priority.
Considerations
•
A job submitted without the SELPRI attribute adopts the DEFAULT-SELPRI
scheduler attribute. To display the value of this attribute, use the INFO
SCHEDULER command.
•
Selection of jobs with the same CLASS attribute, SELPRI attribute, and run time
is by submission time on a first-in, first-out basis. For more information about job
selection, see Section 1, NetBatch Introduction.
•
The RUNNEXT JOB and RUNNOW JOB commands override a job’s SELPRI
attribute. For more information, see RUNNEXT JOB Command on page 6-125 and
RUNNOW JOB Command on page 6-128.
Example
This example shows the effect of the SELPRI attribute on job selection. Job 813,
having the highest selection priority, runs first. Jobs 812 and 815 run second and third,
respectively. (Both jobs have the same SELPRI attribute, but job 812 has an earlier
submission time, so it runs before job 815.) Job 814 has the lowest selection priority
(inherited from the scheduler), so it runs last.
4} INFO CLASS DEFAULT
CLASS ATTRIBUTE for DEFAULT
initiation: Off
5} INFO SCHEDULER, DEFAULT-CLASS, DEFAULT-SELPRI
SCHEDULER ATTRIBUTES
default-selpri: 3
default-class: DEFAULT
6} SET JOB EXECUTOR-PROGRAM DELAY, STARTUP "15 SECS"
7} SUBMIT JOB A-SELPRI-6, SELPRI 6; &
}} SUBMIT JOB B-SELPRI-7, SELPRI 7; &
}} SUBMIT JOB C-SELPRI-DEFAULT; &
}} SUBMIT JOB D-SELPRI-6, SELPRI 6
Job A-SELPRI-6 job number 812 submitted
Job B-SELPRI-7 job number 813 submitted
Job C-SELPRI-DEFAULT job number 814 submitted
SEL[PRI] number