CLRJOBQ (Clear Job Queue)

CLRJOBQ Command syntax diagram

 

Purpose

The Clear Job Queue (CLRJOBQ) command removes all the batch jobs (including jobs that have been held) from the specified job queue. Any jobs that are currently being read in and 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.

 

Required Parameters

JOBQ
Specifies the qualified name of the job queue that is cleared of all waiting or held jobs.

The name of the job queue can be qualified by one of the following library values:

*LIBL: All libraries in the job's library list are searched until the first match is found.

*CURLIB: The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.

library-name: Specify the name of the library to be searched.

job-queue-name: Specify the name of the job queue.

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.>

Example for CLRJOBQ

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.

Error messages for CLRJOBQ

*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.