Clear Job Queue (CLRJOBQ)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Clear Job Queue (CLRJOBQ) command removes, from the specified job queue, all the job entries for batch jobs (including jobs that are in the hold state). Any jobs that are currently being read in and any interactive jobs that have been rerouted to the job queue remain on the queue. The running of jobs that were started from the job queue is not affected.

Top

Parameters

Keyword Description Choices Notes
JOBQ Job queue Qualified object name Required, Positional 1
Qualifier 1: Job queue Name
Qualifier 2: Library Name, *LIBL, *CURLIB
LOG Job log *JOB, *NONE Optional
Top

Job queue (JOBQ)

Specifies the job queue that is to be cleared of all waiting or held jobs.

This is a required parameter.

Qualifier 1: Job queue

name
Specify the name of the job queue that is to be cleared.

Qualifier 2: Library

*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.
name
Specify the name of the library where the job queue is located.
Top

LOG (LOG)

Specifies whether to use the message logging values associated with a job for jobs removed from the job queue.

*JOB
Use the message logging values specified for each job when the job is removed from the job queue.
*NONE
No job log spooled files will be generated for the removed jobs.
Top

Examples

CLRJOBQ   JOBQ(QBATCH)

This command removes all jobs currently in the IBM-supplied job queue, QBATCH. Any job currently being read in is not affected.

Top

Error messages

*ESCAPE Messages

CPF2207
Not authorized to use object &1 in library &3 type *&2.
CPF3307
Job queue &1 in &2 not found.
CPF3330
Necessary resource not available.
CPF3416
&1 entries deleted. &2 entries not deleted from job queue &3 in library &4.
CPF9843
Object &1 in library &3 type &2 cannot be accessed.
Top