Manual

92
[Function] Copies the character string from the column in operand 2 to the column in operand 1.
Copies only the length set by the SLEN command. When operand 2 is a literal character, that
is the length copied.
[Example] SCPY 1 ‘ABC’ Copy ‘ABC’ to column 1.
SLEN 10 Set the length of the operation to 10 bytes.
SCPY 100 200 Copy the length of the operation to 10 bytes.
Copy 10 bytes from the column 200 to column 100.
LET 1 300 Assign 300 to variable 1.
LET 2 400 Assign 400 to variable 2.
SLEN 5 Set the length of the operation to 5 bytes.
SCPY *1 *2 Copy 5 bytes from column 400 (the content of variable 2)
to column 300 (the content of variable 1).
noisnapxE
noitidnoc
)RO·DNA(
tupnI
noitidnoc
)galF·O/I(
dnammoC
tsoP
)galF·troptuptuO(
dnammoC 1dnarepO 2dnarepO
lanoitpOlanoitpOYPCS.oNnmuloC
.oNnmuloC
retcarahClaretiL
12. SEL Language
SCPY
SCMP (Compare Character String)
noisnapxE
noitidnoc
)RO·DNA(
tupnI
noitidnoc
)galF·O/I(
dnammoC
tsoP
)galF·troptuptuO(
dnammoC 1dnarepO 2dnarepO
lanoitpOlanoitpOPMCS.oNnmuloC
.oNnmuloC
retcarahClaretiL
QE
[Function] Compares the column in operand 1 and the column in operand 2. Compares only the length set by the
SLEN command. When operand 2 is a literal character, that is the length compared.
[Example] SCMP 1 ‘ABC’ 600 When column 1~3 are ‘ABC’ flag 600 turns ON.
SLEN 5 Set the length to be compared to 5 bytes.
SCPY 10 30 999 When the 5 bytes from column 10 and column 30 are equal,
flag 999 turns ON.
LET 1 10 Assign 300 to variable 1.
LET 2 20 Assign 400 to variable 2.
SLEN 3 Set the length of the operation to 5 bytes.
SCMP *1 *2 310 When the 3 bytes in column 10 (the content of variable 1) and
the 3 bytes in column 20 (the content of variable 2) are equal,
then, the output turns ON.
12.18 String processing commands