Command reference / job

WRKJOBQ

Work with Job Queue

Shows the overall status of all job queues, or the detailed status of one job queue. It can also show the overall status of all job queues matching a qualified generic name. Queue status may change while the command runs. The QSYS2.JOB_QUEUE_INFO view returns similar information.

Allowed environments: *ALL. Positional parameters: 2.

Parameters

JOBQ Job queue

Specifies whether all job queues are displayed, or the one job queue whose status is displayed. A generic name qualified with a library shows the overall status of all matching queues, even if only one matches.

Type
*QUAL
Required
No
Default
*ALL
Case
Uppercase

Suggested / special values: *ALL

*ALL
Status of all job queues is displayed, with information about each queue. No library can be specified with *ALL.
*LIBL
All libraries in the thread's library list are searched until the first match is found.
*CURLIB
The thread's current library is searched; if none is set, QGPL is searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Job queue Job queue

Type
*GENERIC
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB, *ALL

OUTPUT Output

Specifies whether output is displayed at the requesting work station or printed with the job's spooled output.

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

Allowed values: *, *PRINT

*
A work station user's request displays the output; a batch job's request prints it.
*PRINT
The output is printed with the job's spooled output.

Examples

WRKJOBQ JOBQ(QGPL/QBATCH)

Shows detailed status of job queue QBATCH in library QGPL, with each job's name, user, number, priority and status.

IBM command documentation

Generated from os/cl/catalog/WRKJOBQ.json and os/cl/help/WRKJOBQ.json.