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. OPSDELV then returns the number of variables that it deletes. This function 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 you write new code, use OPSVALUE instead.
OPSDELV has the following format:
var = OPSDELV(“namemask” [optional keywords])
Specifies the global variables that OPSDELV deletes. 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 examples use the + and * wildcard characters.
(Optional) Keywords, if present, are separated from the namemask and from each other by a space.
Note: For more information about 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)')
Note: For more examples of the use of OPSDELV, see OPSDELV Command Processor in the chapter “POI Command Processors.”
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|