You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Creating your own job queues<br />
There are numerous reasons why you may decide that you need job queues in<br />
addition to the ones supplied by <strong>IBM</strong>. Additional job queues can be created by<br />
using the Create Job Queue (CRTJOBQ) command:<br />
CRTJOBQ QGPL/QNIGHT TEXT('Job queue for +<br />
night-time jobs')<br />
The following lists the parameters on the Create Job Queue (CRTJOBQ) command<br />
and what they specify:<br />
v OPRCTL: Specifies whether a user having job control authority can control the<br />
job queue (for example, if the user can hold the job queue).<br />
v AUTCHK: Specifies what type of authority to the job queue will enable a user to<br />
control the jobs on the job queue (for example, enable the user to hold the jobs<br />
on the job queue).<br />
v AUT: Specifies what control users have over the job queue itself.<br />
v TEXT: Up to 50 characters of text that describe the job queue.<br />
Multiple job queues for a subsystem<br />
If the priority and sequence of the next job queue to be used is important, you<br />
may want to assign and control multiple job queues for each subsystem. One use<br />
of multiple job queues is to establish a high-priority and a normal-priority job<br />
queue within a subsystem, allowing only one active job on each queue at any time.<br />
Another example: If your production batch jobs need to be completed before a<br />
special after-hours job queue can be made active, you could have the last job in the<br />
normal batch job queue release the after-hours job queue.<br />
Refer to the SEQNBR parameter in the Add Job Queue Entry (ADDJOBQE)<br />
command in the CL Reference to determine how to set priorities for jobs on job<br />
queues. For more information, refer to the Work <strong>Management</strong> book.<br />
Using the WRKJOBQ command<br />
Jobs already on the job queue can be controlled using the Work with Job Queue<br />
(WRKJOBQ) command.<br />
The WRKJOBQ command lists either:<br />
v All the job queues on the system<br />
v All the jobs on a specific job queue<br />
The ability to list all the job queues is important when you are not sure what job<br />
queue was used for a job. From the list of all job queues, you can look at each job<br />
queue to find the job. The display of a specific job queue provides a list of all the<br />
jobs on the queue in the order in which they will become active.<br />
Transferring jobs in a queue<br />
If a job is on a job queue and is not yet active, you can change the job to a<br />
different job queue using the JOBQ parameter on the Change Job (CHGJOB)<br />
command.<br />
Chapter 5. Working with spooled files 163