EMS Manual
Compiled Filters
EMS Manual—426909-005
5-11
Tokens
When you refer to a token, specify a subsystem ID using syntax that:
Qualifies the token name with a subsystem ID. For details, see Qualified Tokens on
page 5-12.
Refers to a token name without qualification in contexts in which the subsystem ID
of the token matches the EMF default subsystem ID. For details, see Tokens
(Unqualified) on page 5-11.
Tokens (Unqualified)
To refer to tokens when qualification by subsystem ID is unnecessary, use this syntax:
token-name
is the token name.
index
if present, is an integer that specifies an occurrence of the token in the event
message (or in the set of parameter tokens). index must have a value between 1
and 1023, inclusive. If you omit index, you select the first occurrence of the token.
Use this syntax to refer to:
All event-message header tokens
All parameter tokens
A data-portion token if the subsystem ID of the token matches the EMF default
subsystem ID at the place of reference
For a description of how to change the EMF default subsystem ID, see Compound
Statement on page 5-31.
For information about how to specify a subsystem ID where the above syntax is
inappropriate, see Qualified Tokens on page 5-12.
Example 1
To compare the value of the ZEMS^TKN^EMPHASIS token with the value
ZSPI^VAL^TRUE:
IF ZEMS^TKN^EMPHASIS = [ZSPI^VAL^TRUE] THEN PASS;
The PASS statement is executed if the ZEMS^TKN^EMPHASIS token has a value of
ZSPI^VAL^TRUE.
token-name [ ( index ) ]