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 Diagrams” on 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
Содержание Enterprise Console
Страница 1: ...IBM Tivoli Enterprise Console Adapters Guide V ersion 3 8 GC32 0668 01...
Страница 2: ......
Страница 3: ...IBM Tivoli Enterprise Console Adapters Guide V ersion 3 8 GC32 0668 01...
Страница 8: ...vi IBM Tivoli Enterprise Console Adapters Guide...
Страница 66: ...54 IBM Tivoli Enterprise Console Adapters Guide...
Страница 76: ...64 IBM Tivoli Enterprise Console Adapters Guide...
Страница 90: ...78 IBM Tivoli Enterprise Console Adapters Guide...
Страница 138: ...126 IBM Tivoli Enterprise Console Adapters Guide...
Страница 156: ...144 IBM Tivoli Enterprise Console Adapters Guide...
Страница 176: ...164 IBM Tivoli Enterprise Console Adapters Guide...
Страница 180: ...168 IBM Tivoli Enterprise Console Adapters Guide...
Страница 192: ...180 IBM Tivoli Enterprise Console Adapters Guide...
Страница 193: ......
Страница 194: ...Program Number 5698 TEC Printed in U S A GC32 0668 01...