Command reference / job
WRKACTJOB
Work with Active Jobs
Lets you work with performance and status information for the active jobs in the system. The job sequence can be changed with the SEQ parameter or from the display, and the selection parameters can also be changed from the display. The QSYS2.ACTIVE_JOB_INFO table function returns similar information.
Allowed environments: *ALL.
Positional parameters: 2.
Parameters
OUTPUT
Output
Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
Allowed values:
*, *PRINT
*- Displayed for interactive jobs; printed with the job's spooled output for non-interactive jobs.
*PRINT- Printed with the job's spooled output.
RESET
Reset status statistics
Specifies whether the active job statistics are reset.
Allowed values:
*NO, *YES
*NO- The statistics are not reset, and the measurement interval is extended if a previous WRKACTJOB ran in the current job.
*YES- The statistics are reset, a measurement interval of zero is used, and all active jobs are displayed.
SBS
Subsystem
Specifies the names of the subsystems (or all subsystems) whose active jobs are displayed. Up to 25 names can be specified.
Suggested / special values:
*ALL
*ALL- All active jobs in the system are displayed, including system jobs not associated with any subsystem.
CPUPCTLMT
CPU percent limit
Specifies the minimum processing time percent value that a job must have before it is included on the display.
Suggested / special values:
*NONE
*NONE- There is no minimum processing time limit for a job to be displayed.
RSPLMT
Response time limit
Specifies the minimum response time limit that a job must have before it is included on the display.
Suggested / special values:
*NONE
*NONE- There is no minimum response time limit for a job to be displayed.
SEQ
Sequence
Specifies the sequence of the active jobs that are displayed.
Allowed values:
*SBS, *AUXIO, *CPU, *CPUPCT, *CURUSR, *FUNCTION, *INT, *JOB, *NUMBER, *POOL, *PTY, *RSP, *STS, *THREADS, *TMPSTG, *TYPE, *USER
*SBS- Jobs are grouped by the subsystem they run in, with subsystem monitors first and system jobs last.
*CPU- Jobs are ordered by processing time used since the job started, largest first.
*CPUPCT- Jobs are ordered by percent of processing unit used in the measurement interval, largest first.
*JOB- Jobs are put in alphabetical order by job name.
*NUMBER- Jobs are ordered by job number, largest first.
*PTY- Jobs are ordered by priority, highest (0) first.
*USER- Jobs are put in alphabetical order by user name.
JOB
Job name
Specifies the name of the active jobs to be displayed. Only active jobs within the subsystems selected by SBS are displayed.
*ALL- All the active jobs are displayed.
*SYS- All active system jobs are displayed. A value other than the default in SBS causes an error message.
*SBS- All active subsystem monitors are displayed.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Job name
Job name
Suggested / special values:
*ALL, *SYS, *SBS
INTERVAL
Automatic refresh interval
Specifies the interval, in seconds, to wait during the automatic refresh option. The default is 300 seconds; valid values range from 5 to 999.
Suggested / special values:
*PRV
*PRV- The interval used in the previous invocation. Until an interval is specified, 300 seconds is used.
Examples
WRKACTJOB SBS(QINTER) SEQ(*INT)
Shows all jobs in subsystem QINTER, sorted by number of operator interactions, with the most interactions first.
Generated from os/cl/catalog/WRKACTJOB.json and os/cl/help/WRKACTJOB.json.