SPI Programming Manual (G06.24+, H06.03+, J06.03+)

ZSPI Data Definitions
SPI Programming Manual427506-006
4-18
Token Types
ZSPI-TDT-USERNAME
The USERNAME data type identifies a 16-byte internal-format user name, such as the
USERIDTOUSERNAME procedure might generate.
Token Types
Every token has a token type. A token type (TYP) associates a defined token data type
(TDT) with a corresponding data definition. The token type can then be used in the
TOKEN TYPE IS clause of a token code definition. Using the standard token data
types, SPI defines a number of token types, which are described here. Most of these
token types are based on structure definitions.
ZSPI-TYP-BOOLEAN
ZSPI-TYP-BOOLEAN specifies that a tokens value is Boolean. A token of this type
has a BOOLEAN token data type and is based on the BOOLEAN data structure.
ZSPI-TYP-BYTE
ZSPI-TYP-BYTE specifies that a tokens value is a single byte. A token of this type has
a BYTE token data type and is based on the BYTE structure.
ZSPI-TYP-BYTE-PAIR
ZSPI-TYP-BYTE-PAIR specifies that a token has a 2-byte value. A token of this type
has a BYTE token data type and is based on the BYTE-PAIR structure.
ZSPI-TYP-BYTESTRING
ZSPI-TYP-BYTESTRING specifies that a tokens value is a string of bytes. A token of
this type has a BYTE token data type and can vary in length.
constant ZSPI-TDT-USERNAME value is 27.
token type ZSPI-TYP-BOOLEAN value is ZSPI-TDT-BOOLEAN
def is ZSPI-DDL-BOOLEAN.
token type ZSPI-TYP-BYTE value is ZSPI-TDT-BYTE
def is ZSPI-DDL-BYTE.
token type ZSPI-TYP-BYTE-PAIR value is ZSPI-TDT-BYTE
def is ZSPI-DDL-BYTE-PAIR.
token type ZSPI-TYP-BYTESTRING value is ZSPI-TDT-BYTE
occurs varying.