This API procedure function call creates an EventView rule set or message rule definition in the knowledge base.
Syntax
This API procedure function call has the following format:
$REDBAPI SERVICE=CREATE
[TRUNCATE={YES|NO}]
CLASS=cc
RULESET=ruleset-name
[field-name-1=field value-1]
[field-name-2=field value-2]
…
[field-name-n=field value-n]
Operands
Important! If possible, do not use the semi-colon (;) in values. By default, a semi-colon is interpreted as a command separator if the API is executed (EXEC) or started (START). If you must use the semi-colon and you are calling the API from an NCL procedure, use the &CALL verb.
This API procedure function call has the following operands:
Specifies that you want to create a definition in the knowledge base.
Specifies whether a field value is truncated if it is longer than the field length.
Specifies that long values are truncated and the definition is created in the knowledge base.
Specifies that no truncation is allowed. If a long value is encountered, the definition is not created in the knowledge base.
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 created or the name of the rule set in which to create a message rule.
Specifies the values of the fields in the definition.
Limits: A value must not contain the question mark (?) character.
Return Variables
This API procedure function call returns the following variable:
Contains the returned message.
Contains the name of a created message rule.
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 was successful, but truncation has occurred.
Indicates that processing failed.
Indicates that error occurred in the call syntax.
Example: Define a Rule Set
This example creates the SUPP rule set definition (class 93), with truncation allowed:
&SDESC=&STR Suppression rules
&CALL PROC=$REDBAPI + PARMS=(SERVICE=CREATE,+ CLASS=93,+ RULESET=SUPP,+ SDESC=&SDESC)
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |