SPI Reference Summary

SPI Procedures and Functions
SPI Reference Summary427507-006
2-8
SSMOVE and SSMOVETKN Procedures
This operation returns in byte-offset, INT .EXT:ref:1, the byte offset from the start
of the buffer to the value associated with the specified token code and index.
SSMOVE and SSMOVETKN Procedures
These procedures copy tokens from one SPI buffer to another. (Do not use
SSMOVETKN in COBOL programs.)
SSMOVE ( token-id ! i
SSMOVETKN , source-buffer ! i,o
, [ source-index ] ! i
, dest-buffer ! i,o
, [ dest-index ] ! i
, [ count ] ! i,o
, [ ssid ] ) ! i
Parameter Value/Ref Description
token-id ref:* (SSMOVE)
value (SSMOVETKN)
Token code or (for SSMOVE only) token map of
token or lists to be copied
source-
buffer
ref:* SPI buffer from which tokens are to be copied
source-
index
value >0 = identifies first occurrence of token-id to be
copied from buffer
0 or omitted = start with next token-id after
current position in buffer (default = 1)
dest-
buffer
ref:* SPI buffer to which tokens are to be copied
dest-
index
value >0 = identifies first occurrence of token-id to
replace in destination buffer
0 or omitted = adds tokens from source buffer to
end of destination buffer
count ref:1 Input: maximum number of token values or lists to
be copied (default = 1)
Output: number of token values or lists copied
ssid ref:6 Subsystem ID that qualifies token ID
(default = SSID in header or current list)