Clearing a job queue
When you clear a job queue, every job on the queue is deleted.
This includes any jobs that are in the hold state. You can use iSeries™ Navigator or the character-based interface to clear a job queue. Jobs that are running are not affected because they are considered active jobs and are no longer on the queue.
Parent topic:
Managing job queues
Related concepts
Job queues
iSeries Navigator
To use the iSeries Navigator to clear a job queue, follow these steps:
- Expand My Connections > connection > Job Queues > Active Job Queues or All Job Queues.
- Right-click the job queue and click Clear. The Confirm Clear window appears where you can specify if you want a job log produced when the queue clears.
Character-based interface
Command: Clear Job Queue (CLRJOBQ)
Example: This command removes all jobs currently in the IBM-supplied job queue, QBATCH. Any job currently being read in is not affected.
CLRJOBQ JOBQ(QGPL/QBATCH)