NetBatch Manual
Job Planning, Submission, and Management
NetBatch Manual—522460-004
4-19
Specifying a Job’s Class and Selection Priority
highpin: On
submit: 20OCT94 15:51:26
alter: 20OCT94 15:51:27
user: 255,205
next-runtime: 20OCT94 23:30:00
This command displays only specified attributes of job COBOL-COMPILE:
20} INFO JOB COBOL-COMPILE, IN, OUT, EXECUTOR-PROGRAM, PRI,
SELPRI, CLASS
JOB ATTRIBUTES for COBOL-COMPILE
jobnumber: 6
in: \DEV.$DATA6.DEV.MYPROG
out: \DEV.$S.#COBOL
executor-program: \DEV.$SYSTEM.SYSTEM.COBOL85
pri: 119
selpri: 1
class: COMPILES
Specifying a Job’s Class and Selection Priority
The CLASS and SELPRI attributes assign a job to a class and specify the job’s
selection priority in that class. The class links the job to an executor and hence to the
executor’s CPU. This link enables the scheduler to start, in the specified CPU, the job’s
executor-program process.
Example
This example shows submission of three jobs assigned to class DEFAULT. The class’s
INITIATION attribute before job submission is set to OFF, which prevents the scheduler
from selecting the jobs. The INITIATION attribute is set to ON after job submission,
which enables the scheduler to select and run the jobs. The jobs’ SELPRI attributes
determine their execution order.
79} ALTER CLASS DEFAULT, INITIATION OFF
Class DEFAULT altered
80} SUBMIT JOB P, CLASS DEFAULT, SELPRI 1
Job P job number 482 submitted
81} SUBMIT JOB Q, LIKE P, SELPRI 4
Job Q job number 483 submitted
82} SUBMIT JOB R, LIKE P, SELPRI 7
Job R job number 484 submitted
83} STATUS JOB *, SELPRI
JOB JOBNAME USERID SEL STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
482 P 255,255 1 READY DEFAULT
483 Q 255,255 4 READY DEFAULT
484 R 255,255 7 READY DEFAULT
84} ALTER CLASS DEFAULT, INITIATION ON
Class DEFAULT altered
85} STATUS JOB *, SELPRI
JOB JOBNAME USERID SEL STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
482 P 255,255 1 READY DEFAULT