Use the following sample code:
proc sql;
select col1 into :var1 separated by ',' from lib1.table1;
quit;
if handle multiple columns into multiple variables, you can input the below code:
proc sql;
select col1,col2 into :var1, :var2
from table1;
quit;
Maybe you could look up SAS Documentation helper and find the appropriate answers.
... View more