Command reference / sys
WRKSYSACT
Work with System Activity
Lets you interactively work with the jobs and tasks currently running on the system. You can also direct the data to a database file for future use. The QSYS2.SYSTEM_STATUS_INFO view and QSYS2.SYSTEM_STATUS table function return similar information.
Allowed environments: *ALL.
Positional parameters: 1.
Restrictions
- You must have job control (*JOBCTL) special authority to use this command.
Parameters
OUTPUT
Output
Specifies whether the output is shown on the display station that entered the command, written to a physical database file, or both.
Allowed values:
*, *FILE, *BOTH
*- The output is shown on the display station.
*FILE- The output is written to database file QAITMON, using the member and library specified in the MBR and LIB parameters.
*BOTH- The output is shown on the display station and written to the database file. Statistics are put in QAITMON each time the display is refreshed.
INTERVAL
Interval length
Specifies the number of seconds between refreshes of the data in automatic refresh mode and/or writes to the database file. Valid values range from 1 through 900 seconds.
SEQ
Sequence
Specifies the sequence of the jobs and tasks displayed or written to the database file.
Allowed values:
*CPU, *IO, *SQLCPU, *STGALC, *STGDLC, *STGNET
*CPU- Ordered by processing time used during the interval, greatest first.
*IO- Ordered by number of I/O operations performed during the interval, most first.
*SQLCPU- Ordered by processing time used for SQL processing, greatest first.
*STGALC- Tasks or threads ordered by amount of allocated storage, highest first.
*STGDLC- Tasks or threads ordered by amount of deallocated storage, highest first.
*STGNET- Tasks or threads ordered by net storage, meaning allocated minus deallocated storage, greatest difference first.
INFTYPE
Type of information
Specifies the type of information that is shown or written to the database file.
Allowed values:
*ALL, *JOBS, *TASKS
*ALL- Both jobs and tasks are shown or written.
*JOBS- Only jobs are shown or written.
*TASKS- Only tasks are shown or written.
NBRITV
Number of intervals
Specifies the number of times the data is collected and written to the database file. This parameter is valid only when *FILE is specified for the OUTPUT parameter.
MBR
Member
Specifies the database file member where the output for the collected data is stored. If the member does not exist, it is created. This parameter is valid only when *FILE or *BOTH is specified for OUTPUT.
Suggested / special values:
QAITMON
LIB
Library
Specifies the library where database file QAITMON is located. The file is created automatically if it does not exist in the specified library. This parameter is valid only when *FILE or *BOTH is specified for OUTPUT.
Suggested / special values:
QPFRDATA
Examples
WRKSYSACT OUTPUT(*BOTH) INFTYPE(*JOBS) MBR(JOBACT)
Displays the panel showing jobs only, and writes this information to member JOBACT of database file QAITMON in default library QPFRDATA.
Generated from os/cl/catalog/WRKSYSACT.json and os/cl/help/WRKSYSACT.json.