1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
* (Q) How can I combine a string and a numeric variables? For example the sting variable
	is 'Math', the number is 101 and I need "Math101".

*(A) Posted to SPSSX-L list by Raynald Levesque on 2002/09/03.


DATA LIST LIST /subject(A8) numb(F6).
BEGIN DATA
Math 101
English 402
END DATA.
LIST.

STRING comb(A12).
COMPUTE comb=CONCAT(RTRIM(subject),LTRIM(STRING(numb,F4))).
LIST.