Previous Topic: Records That OPSCPU Returns

Next Topic: OPSDEV Function

OPSDELV Function

The OPSDELV function deletes only OPS/REXX global variables beginning with a valid global stem prefix (GLOBAL, GLOBALx, GLVTEMPx, or GLVJOBID) and Automate-format variables, and then returns the number of variables that it deleted. It has no effect on other variables. Automate-format variables are defined in the ATMLOCALSCOPEnn and ATMSHAREDSCOPEnn parameters.

Note: The OPSDELV function can be used in OPS/REXX, AOF rules, TSO/E REXX, or CLIST. This function is supplied for compatibility with Automate code. When writing new code, use OPSVALUE instead.

This function has the following format:

var = OPSDELV(“namemask” [optional keywords])
namemask

Specify an exact global variable name for the namemask argument, or use the following wildcard characters to select a range of names:

+

Matches any single character in a variable name.

*

Matches any number of trailing characters in a variable name.

The following are valid examples of using the + and * wildcard characters.

keywords

(Optional) Keywords, if present, are separated from the namemask and from each other by a space.

For explanations of the keywords you can use with OPSDELV, see OPSDELV Command Processor in the chapter “POI Command Processors.”

Examples: OPSDELV

For more examples that illustrate how you can use OPSDELV, see OPSDELV Command Processor in the chapter “POI Command Processors.”