SPI Reference Summary
SPI Procedures and Functions
SPI Reference Summary—427507-006
2-14
#SSMOVE Built-In Function
#SSMOVE Built-In Function
#SSMOVE copies tokens from one SPI message buffer to another.
Expansion
Status code (SPI error) = 0, -1 through -12
#SSMOVE [ / option [ , option ]... / ]
source-var dest-var token-id
option
[ COUNT count ]
[ DINDEX dest-index ]
[ SINDEX source-index ]
[ SSID ssid ]
source-var
source message buffer variable
dest-var
destination message buffer variable
token-id
token code or token map of token to be copied
Parameter Description
COUNT count Maximum token values or lists to copy (default = 1)
DINDEX dest-
index
>0 = first occurrence of token-id to replace in destination buffer;
1 = start replacement with first occurrence of token;
2 = start with second occurrence of token; and so on.
(default or 0 = add tokens to end of destination buffer)
SINDEX source-
index
>0 = first occurrence of token-id to be copied from source buffer;
1 = start copy with first occurrence of token;
2 = start copy with second occurrence of token; and so on.
(default or 0 = start with next occurrence after current position)
SSID ssid Subsystem ID that qualifies token-id (default or 0.0.0 = SSID of
current list or if not in list, ZSPI^TKN^SSID in header)