This API procedure function call sets the value of an EventView variable.
Syntax
This API procedure function call has the following format:
$RECALL SERVICE=SET
CLASS=VARIABLE
NAME=‘VARNAME=variable-name’
PARMS=‘VALUE=new-value’
[DESC=value-description]
Operands
This API procedure function call has the following operands:
Specifies that a value is to be set.
Specifies that the value of an EventView variable is to be set.
Specifies the name of the EventView variable.
Limits: Up to eight characters long
Specifies the new value to be set for the specified variable.
(Optional) Specifies a description for the value.
Return Variable
This API procedure function call returns the following variable:
Contains the returned message.
Return Codes
Return codes indicate the success or failure of processing. This API procedure function call returns the following return codes in the &RETCODE variable:
Indicates that processing was successful.
Indicates that processing failed.
Indicates that error occurred in the call syntax.
Example: Set the Value of a Variable
This example sets the value of TEST:
&VALUE = &ZQUOTE Test’s value at &TIME &DESC = &ZQUOTE Why Test was changed &PARMS = &ZQUOTE VALUE=&VALUE DESC=&DESC &CALL PROC=$RECALL + PARMS=(SERVICE=SET,+ CLASS=VARIABLE,+ NAME='VARNAME=TEST',+ PARMS=&PARMS)
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |