Hi, lets say i have the following dataset...
and i want to concatenate var1 into one big string i.e. abce...
I've tried this but it doesn't seem to work and I really cant figure out why!
All suggestions welcome!
Thanks
Nick
Code:
data test1;
input var1 $;
datalines;
a
b
c
e
f
;
run;
and i want to concatenate var1 into one big string i.e. abce...
I've tried this but it doesn't seem to work and I really cant figure out why!
Code:
data test2;
set Test1;
retain mstr;
if _n_ = 1 then mstr = var1;
else
mstr = mstr||var1;
run;
All suggestions welcome!
Thanks
Nick