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])
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.
(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
count = OPSDELV('MYVARS.*')
count = OPSDELV('GLOBAL.XYZ*')
count = OPSDELV('GLOBAL.XYZ* SYSTEM(ALL)')
For more examples that illustrate how you can use OPSDELV, see OPSDELV Command Processor in the chapter “POI Command Processors.”
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |