JCL PRIORITY

JCL - PASSWORD JCL - RD

Advertisements


PRTY parameter used to assign a selection priority for a JOB.

PRTY parameter controls the JOB execution by giving a specific priority to JOB.

PRTY parameter determines the priority of JOBs within the same CLASS.

PRTY is an optional parameter.

JOB execution priority is always decided based on the CLASS category.

If two submitted JOBs have the same CLASS, then highest priority JOB completed first and lowest priority job completed last even though lowest priority job submitted first.

In PRTY, Highest numbers have highest priority and lowest number have lowest priority.


Syntax:

PRTY=priority-number

Syntax with JOB card:

//JOB-NAME JOB (ACCT-INFO),’PROGR-NAME’, CLASS=class-name, MSGCLASS=msg-class, 
//   MSGLEVEL (M1, M2), PRTY=priority-number, keyword-parameters

Priority-number PRTY parameter value is a Numeric number with the range of 0-15 in JES2, 0-14 in JES3.

Higher number will have the higher priority during the execution.

Among all the PRTY values, 15 is the highest priority in JES2 and 14 is the highest priority in JES3.

Defaults:

JES2 job priority in the following override order:


  1. A JES2 PRIORITY statement.
  2. The JOB statement PRTY parameter.
  3. A value calculated from the accounting information on a JES2.
  4. An installation default specified at JES2 initialization.

JES3 job priority in the following override order:


  1. The JOB statement PRTY parameter.
  2. An installation default specified at JES3 initialization

Note:

If the specified priority in PRTY parameter is invalid, JES3 issues an error message.


Example 1:

//MTHEXMP1 JOB (META007),'PAWAN Y', CLASS=A, PRTY=9

In the above example, the JOB statement requests the system to set the priority as 9 with in the class A.


Example 1:

Job A: //MTHEXMP1 JOB (META007),'PAWAN Y', CLASS=A, PRTY=9

Job B: //MTHEXMP2 JOB (META007),'PAWAN Y', CLASS=A, PRTY=11

In the above example, JOB A start executing before JOB B even though JOB A and B submitted at the same time.


JCL - PASSWORD JCL - RD

Advertisements