SPI Reference Summary
SPI Procedures and Functions
SPI Reference Summary—427507-006
2-4
SSGET and SSGETKN Procedures
ZSPI-TKN-RESET-BUFFER
Use this token code before extracting tokens from an SPI buffer received (in either a 
request or a reply) from another process. 
SSGET and SSGETKN Procedures
These procedures extract tokens and related information from the SPI buffer. (Do not 
use SSGETTKN in COBOL programs.) 
SSPUT ( buffer
SSPUTTKN , ZSPI-TKN-RESET-BUFFER
 , maxlen ) ! i
SSGET ( buffer ! i,o
SSGETTKN , token-id ! i
 , [ token-value ] ! i,o
 , [ index ] ! i
 , [ count ] ! i,o
 , [ ssid ] ) ! i,o 
Parameter Value/Ref Description
buffer ref:* SPI buffer from which information is to be extracted
token-id ref:* (SSGET) 
value (SSGETTKN)
Token code or (for SSGET only) token map of token or 
special operation 
token-value ref:* Input: variable in which token value is to be returned
Output: control or positioning operations
index value >0 = position of token-id from start of buffer or list
0 or omitted = next token-id after current position in 
buffer
count ref:1 Input: maximum number of token values to return 
(default = 1)
Output: number of token values returned or, for some 
special operations, length, byte offset, or number of 
occurrences of token
ssid ref:6 Subsystem ID qualifying token










