The Work with Job Queues – WRKJOBQ command shows the overall status of all job queues or the detailed status of a specific job queue. Also, this command allows the user to work with the overall status of all job queues that match the qualified generic name specified. The status of the queues may change while the command is being run.
Job queue (JOBQ)
Specifies that all job queues are to be displayed, or specifies the job queue whose status is to be displayed.
If *ALL is specified, no value can be specified for a library name because *ALL provides a list of all job queues in every library on the system.
When a generic job queue name is specified and qualified with a library name, the overall status of all the job queues that match the generic name is shown even if there is only one job queue that matches the generic name.
When *ALL is specified for the library, the overall status of the job queues is shown even if only one job queue is found.
Output (OUTPUT)
Specifies whether the output from the command is displayed at the requesting work station or printed with the job’s spooled output.
Examples
Example 1: Displaying Status Information of a Specific Job Queue
WRKJOBQ JOBQ(QGPL/QBATCH)
This command shows the detailed status information about the job queue named QBATCH in the QGPL library. Each job on the QBATCH job queue is identified by job name, user name, and job number; the job’s priority and status are also shown.
Example 2: Searching for Job Queues Using a Generic Name
WRKJOBQ JOBQ(QGPL/QBAT*)
This command allows the user to show and work with the overall status information of the job queues whose names start with ‘QBAT’ and exist in the QGPL library.
Source : IBM
One Reply to “WRKJOBQ – Work With Job Queues”