Previous Topic: OPSSMTBL FunctionNext Topic: OPSTATUS Function


OPSSRM Function

The OPSSRM function returns information about the z/OS System Resource Manager (SRM). The option value specifies the type of request. For now, only the option I (for Information) is supported.

Note: The OPSSRM function can be used in OPS/REXX or AOF rules.

This function has the following format:

var = OPSSRM(option,string)
string

Specifies the information to be returned.

Valid values for string are:

ASMQ

Returns the current average length of the auxiliary storage manager queue (ASMQ) as seen by the SRM. The lower the value, the better the system performs.

AFQA

Returns the current number of storage frames on the available frame queue. The higher the value, the better the system performs. This value is only valid for z/OS 1.7 and higher. Older z/OS versions return a value of zero.

CPU

Returns the long-term CPU busy value from the SRM control table.

LSwapTSO

Returns the number of logically swapped TSO users.

LSwapNTSO

Returns the number of logically swapped non-TSO users.

Paging

Returns the current average paging rate of the system as seen by the SRM.

PageDelay

Returns the current page delay time of the paging subsystem, in milliseconds, as seen by the SRM. The lower the value, the better the system performs.

ThinkTime

Returns the system Think Time in seconds.

UIC

Returns the current average unreferenced interval count (UIC) of the system as seen by the SRM. The values vary between 0 and 2540. Use the UICCUR value instead of this one on z/OS 1.8 and higher systems.

UICCUR

Returns the current UIC used for SRM internal management. The values vary between 0 and 65535. A UICCUR value of 65535 means that there are enough frames on the available frame queue in the system. This value is only valid for z/OS 1.8 and higher. Older z/OS versions return a value of zero.

UICMIN

Returns the lowest UIC found on the last "walk" through the whole of storage. The values vary between 0 and 65535. This value is only valid for z/OS 1.8 and higher. Older z/OS versions return a value of zero.

UICMAX

Returns the highest UIC found on the last "walk" through the whole of storage. The values vary between 0 and 65535. This value is only valid for z/OS 1.8 and higher. Older z/OS versions return a value of zero.

ZIIPUSAGE

Returns the utilization of the zIIP processors. This is equivalent to the value returned by CPU, but for the zIIP processors.

Example: Use the OPSSRM function

This example uses OPSSRM to determine how much load is being placed on real storage.

if OPSSRM("I"," CurUIC ") < 10 then
say "There is significant demand for real storage!"