Sunday, June 15, 2008

Changing Priority of executing a job

We have 2 options to change the priority for running jobs
1. Adjusting the priority in the job description (JOBD)
2. Using the new, relative priority classes

JOBD - Job description ( Used when submitting or starting job)

There is a corollary that the priority specified in JOBD must be between 15 and 80. If this is not the case, a warning is given and the priority is JOBD is set to 20 (for priority <15)>80).
we can improve the adjustment of the job priority by using the new job priority classes. There are 4 relative priority classes that are based on the priority defined in JOBD.
Priority class ID Priority to the value in JOBD Meaning
HH JOBD value -10 Highest priority
H JOBD value -5 Highest priority
M JOBD value -10 Medium priority
L JOBD value +5 Low priority


Before we can use the new priority classes, we must activate the system value QDYNPTYSCD (Dynamic Priority Scheduler) by setting the value to 1. We require a system IPL (initial program load) to make the changes take effect.
We can then specify priority classes for the processes Update (UPD), Batch (BTC), and Spool (SPO). All the other processes have a fixed relative priority. The critical processes Message Server (MS), Dispatcher (DISP), Enqueue (ENQ) and Gateway (GW) are assigned priority class HH, for example. The user cannot change this. The following table displays which type of priority classes are permitted for which work processes. The work processes in bold can be changed by the user.
Priority class ID Work Process
HH MS, DISP, GW, ENQ
H
UPD
M UDP, DIA, UPD2, BTC, SPO
L BTC, SPO

Transaction RZ11 lets we adjust the priority for the UPD, BTC, or SPO processes. The following parameters are relevant:
Parameter Meaning
Parameter rdisp/prio/upd Priority class for UPD
rdisp/prio/btc Priority class for BTC
rdisp/prio/spo Priority class for SPO

These parameters have M as the default value.
We have activated the new priority classes. Your job description (JOBD) displays a priority of 20. Set UPD to priority class H, BTC to priority class M, and SPO to priority class L. The actual priorities for the various work processes are as follows:

Work Process Priority of Execution
MS, DISP, GW, ENQ 10
UPD 15
BTC, DIA, UPD2 20
SPO 25

If QDYNPTYSCD = 0, all the processes have the default value for the priority of execution that is set in JOBD.
If QDYNPTYSCD = 1, new priority classes are always activated. If an incorrect class was specified for a changeable work process, its default value is assigned to this process and a warning is given.

No comments: