Work with System Status (WRKSYSSTS)

The Work with System Status (WRKSYSSTS) command allows you to work with information about the current status of the system. It displays the number of jobs currently in the system, the total capacity of the system auxiliary storage pool (ASP), the percentage of the system ASP currently in use, the amount of temporary storage currently in use, the percentage of machine addresses used, and statistical information related to each storage pool that currently has main storage allocated to it. The statistical information is gathered during an identified time interval (shown as the elapsed time); the data can either be updated by extending the measurement time interval, or it can be restarted to show statistics for the interval starting with the previous display.

Start of change

The QSYS2.SYSTEM_STATUS_INFO and QSYS2.MEMORY_POOL_INFO views and the QSYS2.SYSTEM_STATUS and QSYS2.MEMORY_POOL table functions provide similar information.

End of change

Parameters

Keyword Description Choices Notes
OUTPUT Output *, *PRINT Optional, Positional 1
RESET Reset status statistics *NO, *YES Optional
ASTLVL Assistance level *PRV, *USRPRF, *BASIC, *INTERMED, *ADVANCED Optional

Output (OUTPUT)

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

*
The output is displayed for interactive jobs or printed with the job's spooled output for non-interactive jobs.
*PRINT
The output is printed with the job's spooled output.

Reset status statistics (RESET)

Specifies whether system status statistics fields are reset to zero, as if this is the first occurrence of this command in this job.

*NO
The system status statistics are not reset.
*YES
The system status statistics are reset. This will also reset the status statistics on the Display System Status (DSPSYSSTS) command and the QWCRSSTS API.

Assistance level (ASTLVL)

Specifies which user interface to use.

*PRV
The previously used assistance level is presented.
*USRPRF
The assistance level defined in the user profile is presented.
*BASIC
The Operational Assistant user interface is used.
*INTERMED
The system user interface is presented.
*ADVANCED
The system user interface expert mode is presented.

Examples

WRKSYSSTS  OUTPUT(*PRINT)

This command prints the system status information. If OUTPUT(*) is specified instead, and the command is entered from an interactive job, the Work with System Status panel is displayed, showing information about the system.

Error messages

*ESCAPE Messages

CPF1009
Statistics elapsed time reset.
CPF1882
Value for paging option not valid.
CPF980A
&1 routine in &2 module detected an exception. The exception return code was &3.
CPF9847
Error occurred while closing file &1 in library &2.
CPF9850
Override of printer file &1 not allowed.
CPF9851
Overflow value for file &1 in &2 too small.
CPF9871
Error occurred while processing.