1.

For what purpose would you use the RETAIN statement?

Answer»

we can use CATX function for it. CATX function with a SERIES, Let’s say you want to concatenate the value of a VARIABLE

data a;  sp='|';  x1='a';  x2='b';  x3='c';  STRING=catx(sp,of x1-x3);  run;  proc print data=a; run;

output –

Obs     sp     x1 x2         x3 string 1           |   a b           c a|b|c


Discussion

No Comment Found