Previous Topic: Types of OPSVSAM FunctionsNext Topic: Values OPSWAIT Returns


OPSWAIT Function

The OPSWAIT function suspends processing of the program or rule for a specified period in an OPS/REXX program or REQ rule.

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

OPSWAIT has the following two formats:

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

Defines the amount of time that OPSWAIT suspends processing. Specify a value in hh:mm:ss format, or the number of seconds. The number can 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.