This API procedure function call deletes an EventView rule set or message rule definition from the knowledge base.
Syntax
This API procedure function call has the following format:
$REDBAPI SERVICE=DELETE
[NAME=rule-object-name]
CLASS=cc
RULESET=ruleset-name
Operands
This API procedure function call has the following operands:
Specifies that a definition is to be deleted from the knowledge base.
Specifies the object name of the message rule definition to be deleted.
The name is contained in the &ZRENAME variable returned by a previous $REDBAPI SERVICE=CREATE call.
This operand is not required if you are deleting a rule set.
Specifies the two-digit identifier of the EventView class to which the definition belongs.
Specifies the rule set class.
Specifies the message rule class.
Specifies the name of the rule set to be deleted or the name of the rule set that owns the message rule is to be deleted.
When you delete a rule set, you also delete the rules it owns.
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: Delete a Rule Set
This example deletes the SUPP rule set (class 93):
&CALL PROC=$REDBAPI + PARMS=(SERVICE=DELETE,+ CLASS=93,+ RULESET=SUPP)
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |