Command reference / job
HLDJOBQ
Hold Job Queue
The Hold Job Queue (HLDJOBQ) command prevents the processing of all jobs currently waiting on the job queue and of all jobs that are added to the queue after the command is issued. This command has no effect on jobs that are running. Additional jobs can be placed on the job queue while it is held, but they are not processed. The jobs are held until a Release Job Queue (RLSJOBQ) command is issued. When a job queue is held, the jobs can be cleared with the Clear Job Queue (CLRJOBQ) command or a specific job can be canceled by the End Job (ENDJOB) command. Restriction: The QLPINSTALL job queue cannot be held.
Allowed environments: *ALL.
Positional parameters: 1.
Parameters
JOBQ
Job queue
Specifies the job queue that will have its current and future entries withheld from further processing. This is a required parameter.
Qualifier 1: Job queue: name- Specify the name of the job queue to be held.
Qualifier 2: Library: name- Specify the name of the library where the job queue is located.
*LIBL- All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB- The current library for the job is used to locate the job queue. If no current library entry exists in the library list, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Job queue
Job queue
Library
Library
Suggested / special values:
*LIBL, *CURLIB
Examples
HLDJOBQ JOBQ(QBATCH)
This command prevents the processing of the jobs currently on the QBATCH job queue and any jobs added to the queue. They are held until the queue is released or cleared. Individual jobs can also be ended with the ENDJOB command, which removes the job from the job queue.
Generated from os/cl/catalog/HLDJOBQ.json and os/cl/help/HLDJOBQ.json.