IBM Enterprise Console SELECT Statement Example, FETCH Statement Example, Keywords, $Actioncode

Models: Enterprise Console

1 194
Download 194 pages 8.78 Kb
Page 37
Image 37

JobDescription

Specifies an AS/400 job description that is to be used when starting the adapter. The default is QGPL/QDFTJOBD.

LanguageID Specifies the AS/400 language ID in which alerts are to be sent to the event server. If a value is specified for this keyword, the AS/400 secondary language must be installed for that language ID. The default value for this keyword is ENU.

ProcessExistingAlerts

Specifies whether to send existing alerts on the data queue defined by the FilterDataQueue keyword. NO sends any new alerts sent to the data queue. YES sends the next alert received on the data queue. This can cause the adapter to resend previously sent alerts and create duplicate events sent to the event server. The default is NO.

ServerCCSID Specifies the coded character set identifier (CCSID) of the event server. This is in case the event server has a special code page or graphic character set that needs to be supported. The default is 00819.

Class Definition Statement File

The CDS file defines how events are constructed from information sent by the AS/400 alert adapter. It is described in detail in “Class Definition Statement File” on page 18.

SELECT Statement Example

SELECT

1:ATTR(=,$ALERT_CDPT),VALUE(PREFIX, "10"); # 10xx codepoints

Here, $ALERT_CDPT is a custom keyword set by the adapter. These keywords can be used to write shorthand notation for SELECT statements. The following is equivalent to the previous example:

SELECT 1:$ALERT_CDPT=10";

FETCH Statement Example

FETCH

1:SUBSTR(value, start, length);

Keywords

To customize events, the AS/400 alert adapter supports the following keywords in class definition statements. Evaluation of these keywords is faster because access of them is direct. Event definition content and syntax are described in the IBM Tivoli Enterprise Console Rule Builder’s Guide.

$ACTIONS Recommended actions to be taken for the alert.

$ACTION_CODE

The legacy action code for non-generic alerts (alert subvector x’91’).

$ADAPTER_CORREL

Unique alert identifier used to extract the alert from the alert database on the AS/400 system.

$ADAPTER_HOST

The protocol address of the host where the adapter is running.

Chapter 2. AS/400 Alert Adapter 25

Page 37
Image 37
IBM Enterprise Console manual SELECT Statement Example, FETCH Statement Example, Class Definition Statement File, Keywords