I answered too quickly, it is not working 😞 If I took back your example: proc sql noprint;
select quote(trim(name)) into :namelist separated by "','"
from sashelp.class
where age =13
;
quit;
%put &=namelist;
proc print data=sashelp.class ;
where name in ('&namelist.');
run; I modified the separation string because it is character. I need to have " '01','02','03' " and not "1 2 3" So I create the macrovariable namelist with value " 01','02','03 " and then I call ('&namelist.') to get " ('01','02','03') " but thers should be something wrong because it returns no result in the new table, whereas when I write ('01','02','03') manually i have some results. PS: when I write %put &namelist. I get 01','02','03 which is the expected result. Can you help me for this? Thanks
... View more