Tuesday, June 17, 2008

About WRKJOB command


WRKJOB command- This command is a very powerful command. This command is useful to know more details of the Submitted/Active/ended jobs. There is an option to print to spool file or to current display.


Screen shot:
Work with Job (WRKJOB)

Type choices, press Enter.

Job name . . . . . . . . . . . . > SGD00238 Name, *
User . . . . . . . . . . . . . Name
Number . . . . . . . . . . . . 000000-999999
Output . . . . . . . . . . . . . * *, *PRINT
Option . . . . . . . . . . . . . *SELECT *SELECT, *STSA, *DFNA...











Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys


Usage: WRKJOB command Job name is mandatory.
User and number is optional.
If we just put the job name and press enter. Command will list all the jobs. Please find below screenshot.

Select Job
06/15/08 21:58:45
Type option, press Enter.
1=Select

Entered
Option Job User Number Type -----Status----- System
SGD00238 CSIUSER 221949 CMNEVK OUTQ 06/14/08
SGD00238 QUSER 222422 CMNEVK ACTIVE 06/14/08
SGD00238 QUSER 220121 CMNEVK OUTQ 06/11/08
SGD00238 QUSER 216924 CMNEVK OUTQ 06/07/08










Bottom
F3=Exit F12=Cancel
Duplicate jobs found.

Now we can put 1 on the job and press enter to see the job log.

There are different options to check the details of the job. I will publish in another post.
Post name: Know more details about your job.

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.