Previous Topic: Types of OPSVSAM Functions

Next Topic: Values OPSWAIT Returns

OPSWAIT Function

The OPSWAIT function can be used in an OPS/REXX program or REQ rule to suspend processing of the program or rule for a specified period of time.

Note: The OPSWAIT function can be used in OPS/REXX, AOF rules, TSO/E REXX, or CLIST.

This function has the following two formats:

var = OPSWAIT(interval)
var = OPSWAIT("any valid OPSWAIT POI command keywords")
interval

Defines the amount of time OPSWAIT should suspend processing. You may specify a value in hh:mm:ss format, or the number of seconds. The number may contain a decimal point and up to two decimal digits (for indicating fractional seconds). If you specify 0 or a negative value, OPSWAIT does not suspend processing.