Safeguard Management Programming Manual (G06.24+, H06.03+)
Common Definitions
Safeguard Management Programming Manual—422086-012
6-7
Specifying Operands
SEL-OPERAND tokens, with array elements matching the order in which the
ZSPI-TKN-SEL-OPERAND tokens are listed. That is, the first such token is element 1
in the operand array, the second token is element 2 in the array, and so on. This
exactly corresponds to the token index as defined for the SSGET procedure. (See the
SPI Programming Manual.)
ZSPI-TKN-SEL-OPERAND has the following format:
ZSPI-TKN-SEL-OPERAND token-type ZSPI-DDL-SEL-OPERAND
def ZSPI-DDL-SEL-OPERAND
02 ZVALUE-TYPE type ZSPI-TYP-ENUM
02 ZTKNCODE type ZSPI-TYP-TOKENCODE
02 ZINDEX type ZSPI-TYP-INT
02 ZFUTURE1 type ZSPI-TYP-INT
02 ZFUTURE2 type ZSPI-TYP-INT
02 ZFUTURE3 type ZSPI-TYP-INT
02 ZFUTURE4 type ZSPI-TYP-INT
02 ZFUTURE5 type ZSPI-TYP-INT
end.
ZSPI-TKN-SEL-OPERAND
is an optional token used with ZSPI-TKN-SEL-EXPRESSION and ZSPI-TKN-SEL-
CONSTANT to specify a selection expression. ZSPI-TKN-SEL-OPERAND defines
an operand to be used in the expression.
ZVALUE-TYPE
contains the value ZSPI-VAL-SEL-CONTENTS.
ZTKNCODE
contains the token code of the operand: ZSFG-TKN-GROUPID, ZSFG-TKN-
PRIMARY-GROUPID, or ZSFG-TKN-SEL-CONSTANT.
ZINDEX
contains an index (as defined for SSGET) into the array of tokens identified by
ZTKNCODE. ZINDEX is meaningful only when ZTKNCODE contains ZSFG-
TKN-SEL-CONSTANT. In this instance, ZINDEX represents the relative
location of the constant in the constant array. The constant array is defined
using ZSPI-TKN-SEL-CONSTANT tokens, as follows.
If ZTKNCODE contains ZSFG-TKN-GROUPID or ZSFG-TKN-PRIMARY-
GROUPID, this index not meaningful and should be set to 1.
ZFUTURE1
ZFUTURE2
ZFUTURE3
ZFUTURE4
ZFUTURE5
are reserved for future use.