IBM Enterprise Console Network Router User Manual


 
Appendix C. Class Definition Statement File Reference
A class definition statement (CDS) file specifies SELECT, FETCH, and MAP
statements for all event classes supported by adapters that utilize a CDS file. This
provided file is required for most adapters and has the same format for all
adapters that use it. A CDS file has an extension of .cds; see each adapter chapter
for exact file names.
File Format
Most of the CDS file is composed of class definition statements. A CDS file has the
following format:
MAP_DEFAULT
map_default_clause
END
CLASS class_name
SELECT
select_clause ...
FETCH
fetch_clause
...
MAP
map_clause
END
Comment lines begin with a number sign (#). For syntax reference information in
BNF notation, see Class Definition Statement File Syntax Diagramson page 161.
Operators
Various operators are used in class definition statements, as follows:
v The PREFIX and SUFFIX operators are valid only for string attribute names,
values, or keys.
v The CONTAINS operator is valid only on string values.
v The not equals (!=), greater than (>), greater than or equals (>=), less than (<),
and less than or equals (<=) operators are applicable only to integer values; they
are not implemented for integer keys.
The following is an example of the use of the operators. In this example, the code
is for an AS/400 message adapter:
CLASS AS400_MSG
SELECT
1: ATTR(=,$MSG), VALUE(PREFIX,"Job");
2: ATTR(=,$MSG), VALUE(CONTAINS,"for User");
3: ATTR(=,$MSG), VALUE(SUFFIX,"You must investigate.");
FETCH
1: SUBSTR($MSG,4,8)
2: SUBSTR($MSG,22,8)
MAP
$severity = CRITICAL;
© Copyright IBM Corp. 2002 155