PRTYParameter 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.
NoteThe priority parameter will decide about the priority of all the jobs which are present in the same class only.
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.