Calculating priority
When a /*PRIORITY or PRTY= on the JOB statement do not specify the scheduling priority, JES2 calculates the priority from the estimatedexecution time. Supply these estimates through the: /*JOBPARM statement, the accounting information on the JOB statement, or the ESTIME initialization statement.
To calculate priority, JES2 uses the PRIORITY= and TIME= parameters on the JOBPRTY(n) initialization statement as a table of values. You can supply these values on the JOBPRTY(n) statement or allow them to default. The following example uses the default values to calculate priority:
| If TIME<=* | Then JOBPRTY(n)= | Then PRIORITY=** |
|---|---|---|
| 2 | (1) | 9 |
| 5 | (2) | 8 |
| 15 | (3) | 7 |
| 279620 | (4) | 6 |
| . | . | . |
| . | . | . |
| . | . | . |
| 279620 | (8) | 2 |
| 279620 | (9) | 1 |
| * The TIME values are estimates
of the number of minutes a job requires to execute. ** These are
the defaults for corresponding n values. For example, if you specify
TIME= to estimate 4 minutes execution time,
|
||
If the job is placed on the HARDCOPY queue, JES2 ignores the job priority (for example, 8, as calculated in the above example); the actual priority used (in this example) is the output priority.
During JES2 initialization, you can specify the ACCTFLD parameter on the JOBDEF initialization statement and cause JES2 to ignore the accounting field on the JOB statement.