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

ZSPI Data Definitions
SPI Programming Manual427506-006
4-41
Token Codes
TKN-LASTPOSITION, it sets the current position according to the passed position
value. Position values are based on the byte offsets of tokens in the buffer; position
values are rendered invalid if an SSPUT with ZSPI-TKN-DELETE or ZSPI-TKN-DATA-
FLUSH is used to modify the buffer after the position value is obtained.
ZSPI-TKN-PROC-ERR
ZSPI-TKN-PROC-ERR is returned by a subsystem in an error list when an unexpected
error occurs on a call to one of the SPI procedures. Its value indicates which SPI
procedure failed. Its token type is ZSPI-TYP-ENUM. Allowed values for error lists
defined by SPI (for SPI errors encountered by a subsystem and returned to the
application) are ZSPI-VAL-SSGET, ZSPI-VAL-SSGETTKN, ZSPI-VAL-SSINIT, ZSPI-
VAL-SSMOVE, ZSPI-VAL-SSMOVETKN, ZSPI-VAL-SSNULL, ZSPI-VAL-SSPUT, and
ZSPI-VAL-SSPUTTKN.
ZSPI-TKN-PROG-FNAME
ZSPI-TKN-PROG-FNAME conveys a program file name.
ZSPI-TKN-RESET-BUFFER
ZSPI-TKN-RESET-BUFFER, passed to SSPUT, performs resetting operations on an
SPI buffer received from another process to prepare it for scanning by the receiving
process. This operation clears the last-error information, resets the maximum buffer
length, and resets the current position to the beginning of the buffer. The token type of
this token is ZSPI-TYP-UINT.
token-code ZSPI-TKN-PROC-ERR
value ZSPI-TNM-PROC-ERR
token-type ZSPI-TYP-ENUM
ssid ZSPI-VAL-NULL-EXT-SSID
heading "Procedure_in_error".
token-code ZSPI-TKN-PROG-FNAME
value ZSPI-TNM-PROG-FNAME
token-type ZSPI-TYP-STRING
ssid ZSPI-VAL-NULL-EXT-SSID
heading "Program_filename".
token-code ZSPI-TKN-RESET-BUFFER
value ZSPI-TNM-RESET-BUFFER
token-type ZSPI-TYP-UINT.