JCL PRTY PARAMETER
PRTY Parameter is priority parameter and this is an optional keyword parameter that is used to assign the priority to jobs which belongs to a particular class.
JES uses this PRTY parameter to decide the order in which the Jobs will be executed.
The Syntax of PRTY Parameter:
PRTY=priority_number
Where priority_number can range from 0 to 15 in case of JES2 and in case the of JES3, it can range from 0 to 14.
So, if a JCL has a lower priority number in the PRTY Parameter, then it means that the JCL has less priority. Similarly, if a JCL has a higher priority number in the PRTY Parameter, then it means that the JCL has higher priority.
Example:
15 has the highest priority in the case of JES2, and 0 is having the lowest priority in case of
JES2. In case of JES3, 0 as having the lowest priority and 14 is the highest priority.
Suppose, we have 2 Jobs i.e. JOBPRTY1 and JOBPRTY2
JCL with priority 12 in CLASS A
//JOBPRTY1 JOB (123),’TRAINOOL’,CLASS=A,
// PRTY=12
JCL with priority 14 in CLASS A
//JOBPRTY2 JOB (234),’TRAINOOL’,CLASS=A,
// PRTY=14
Which job will run first based on the priority?
JOBPRTY1 has a priority of 12 in CLASS A while JOBPRTY2 has a priority of 14 in CLASS A so JOBPRTY2 will be executed first based on the priority