Use the OPSVALUE() function to interrogate and set the values of CA OPS/MVS Event Management and Automation global variables. These values are maintained in the CA OPS/MVS Event Management and Automation address space.
The OPSVALUE() function has this syntax:
OPSVALUE(name,[actioncode],[newvalue],[oldvalue])
The OPSVALUE() function takes these arguments:
Name of the CA OPS/MVS Event Management and Automation global variable to be referenced. This value can be a literal string or any expression that will evaluate to the name of a global variable.
Action code defining the operation to be performed. For a list of valid action codes and descriptions of each, see your CA OPS/MVS Event Management and Automation manual set.
New value for the CA OPS/MVS Event Management and Automation variable.
Previous value of the CA OPS/MVS Event Management and Automation variable. This value is compared with the current contents of the variable prior to assigning the value specified by newvalue. If the content of the current variable does not match that specified by oldvalue, the operation is suppressed and an error condition returned.
The OPSVALUE() function produces these return codes:
ARG n MISSING OR INVALID
Example
x = setaddr('ops','OPS5') /* Set target CA-OPS/MVS */
x = opsvalue(... /* Fetch or store value */
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |