$REDBAPI SERVICE=DELETE

Syntax

$REDBAPI
SERVICE=DELETE
[NAME=rule-object-name]
CLASS=cc
RULESET=ruleset-name

Use

Use this call to delete an EventView rule set or message rule definition from the knowledge base.

Operands

Operand

Description

SERVICE=DELETE

Indicates that a definition is to be deleted from the knowledge base.

NAME=rule-object-name

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.

CLASS=cc

Specifies the two digit identifier of the EventView class to which the definition belongs as follows: 93 for rule sets and 94 for message rules.

RULESET=ruleset-name

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.

Returned Variable

Variable

Description

&SYSMSG

Contains the message returned by $REDBAPI.

Return Codes

The following return codes indicate the success or failure of the deletion processing:

&RETCODE

Meaning

0

Processing was successful.

8

Processing failed.

16

Error occurred in call syntax.

Example

The following example deletes the SUPP rule set (class 93):

&CALL   PROC=$REDBAPI +
        PARMS=(SERVICE=DELETE,+
               CLASS=93,+
               RULESET=SUPP)


Copyright © 2010 CA. All rights reserved.