Transferring jobs in a queue

If a job is on a job queue and is not yet active, you can change the job to a different job queue using the JOBQ parameter on the Change Job (CHGJOB) command.

If a job becomes active, it is possible to place it back on a job queue. See the Work Management book for a discussion of the Transfer Job (TFRJOB) and Transfer Batch Job (TFRBCHJOB) commands.

Job queue security

You can maintain a level of security with your job queue by authorizing only certain persons (user profiles) to that job queue. In general, there are three ways that a user can become authorized to control a job queue (for example, hold or release the job queue):

See the CL Reference for more information about authority requirements for individual commands.

These three methods of authorization apply only to the job queue, not to the jobs on the job queue. The normal authority rules for controlling jobs apply whether the job is on a job queue or whether it is currently running. See the Work Management book for details on the authority rules for jobs.

Job queue recovery

If a command fails or the system stops abnormally while a reader or a submit jobs command is running and a partial job (not all the input stream has been read) is placed on the queue, the entire job must be resubmitted to the job queue.

If a job is on a job queue when the system stops abnormally without damaging that job queue, the job remains intact on the job queue and is ready to run when the system becomes active again.

If the system stops abnormally while a job is running, the job is lost and must be resubmitted to the job queue.

If a job queue becomes damaged such that it cannot be used, you will be notified by a message sent to the system operator message queue. The message will come from a system function when a reader, Submit Jobs command, or a job tries to put or take jobs from the damaged queue.

A damaged job queue can be deleted using the Delete Job Queue (DLTJOBQ) command, or it will be deleted by the system during the next IPL. After a damaged job queue is deleted, all job files on the damaged job queue will be moved to output queue QSPRCLJOBQ in library QRCL. This is done by the QSPLMAINT system job, which issues completion message CPC3308 to the QSYSOPR message queue when all jobs have been moved to the QSPRCLJOBQ output queue.

After the damaged job queue is deleted, it can be created again by entering the Create Job Queue (CRTJOBQ) command. Jobs on the job queue QSPRCLOUTQ can be moved back to the newly created output queue using the Change Job (CHGJOB) command.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]