Deleting a job queue

 

To delete a job queue, use the character-based interface.

Restrictions:

There is more than one way to delete a job queue. Although two methods are listed here, the WRKJOBQ command is the recommended method because it shows the job count and status.

Command: Work with Job Queue (WRKJOBQ)

If the number of jobs is 0, then you can use option 4=Delete to delete the job queue from the library.

Use the DLTJOBQ with automated scripts and clean up environments. Be careful when using this method because the default behavior of this command is to search the library list and delete the first job queue that matches the specified name. If you have two job queues of the same name in different libraries, you might end up deleting the wrong one. You can override this behavior by specifying a specific library. Command: Delete Job Queue (DLTJOBQ)

Example: This command deletes the job queue SPECIALJQ in library SPECIALLIB.
DLTJOBQ JOBQ(SPECIALLIB/SPECIALJQ) 

 

Parent topic:

Managing job queues

Related concepts
Job queues