Deleting a job queue

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

Restrictions:
  • The job queue being deleted cannot contain any entries. All jobs on the queue must be completed, deleted, or moved to a different job queue.
  • A subsystem cannot be active to the job queue.

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)