Manual
96
12. SEL Language
[Function] Converts the data in the column in operand 2 to a number and assigns this to the variable
in operand 1. The length set by the SLEN command will be converted.
[Example] SCPY 10 '1234' Copy the string '1234' into columns 10~13.
SLEN 4 Set the length to 4 bytes.
VAL 1 10 ‘1234’ in column 10 is converted to the number 1234 and assigned
to variable 1.
LET 1 100 Assign 100 to variable 1.
LET 2 20 Assign 20 to variable 2
SCPY 20 ‘1234’ Copy ‘1234’ to column 20~23.
SCPY 24 ‘.567’ Copy ‘.567’ to columns 24~27.
SLEN 8 Set the length to 8 bytes.
VALH *1 *2 ‘1234.567’ in column 20 (content of variable 2) will be converted to
the binary number 1234.567 and assigned to variable 100
(content of variable 1).
noisnapxE
noitidnoc
)RO·DNA(
tupnI
noitidnoc
)galF·O/I(
dnammoC
tsoP
)galF·troptuptuO(
dnammoC 1dnarepO 2dnarepO
lanoitpOlanoitpOLAV.oNelbairaV.oNnmuloC
● VAL (Character String Change Data Decimal)