SPI Reference Summary

SPI Procedures and Functions
SPI Reference Summary427507-006
2-7
SSGET and SSGETKN Procedures
ZSPI-TKN-NEXTCODE
Use this token code to get the next token code in the buffer that is different from the
current token code.
next-token-code
contains the next different token code in the buffer.
ssid
contains the number of contiguous occurrences of next-token-code.
The index parameter has no effect on this operation. If supplied, it must equal zero.
ZSPI-TKN-NEXTTOKEN
Use this token code to get the token code of the next token in the buffer.
This operation differs from ZSPI-TKN-NEXTCODE in that it always returns the token
code of the next token, whether or not it is the same as that of the current token, and
whether or not the token is within a list.
The index and count parameters have no effect on this operation. If supplied, index
must equal zero, and count is always returned as 1.
ZSPI-TKN-OFFSET
Use this token code to get the byte offset of a specific token value.
SSGET ( buffer
SSGETTKN , ZSPI-TKN-NEXTCODE
, [ next-token-code ] ! o
,
, [ occurs ] ! o
, [ ssid ] ) ! o
SSGET ( buffer
SSGETTKN , ZSPI-TKN-NEXTTOKEN
, [ next-token-code ] ! o
,
,
, [ ssid ] ); ! o
SSGET ( buffer
SSGETTKN , ZSPI-TKN-OFFSET
, [ token-id ] ! i
, [ index ] ! i
, byte-offset ! o
, [ ssid ] ) ! i