English

How To: Concatenate variables with embedded blanks using SML

Summary

This article describes how two variables and a blank can be concatenated into a third variable using SML, or if an SML variable is assigned with a string which contains embedded blanks.

Procedure

To concatenate two variables, use the following usage:

Code:
&sv 1 first
&sv 2 second
&sv 3 "%1 %2"


To type or use the third variable, it must be surrounded in quotes because it contains a blank.

Code:
&type "%3"


If there is a SML variable with embedded blanks, use the following by surrounding the SML variable in single quotes:

Code:
&SV 1 "This is a string"
MOVE *
TEXT '%1'