@bismilla wrote:
i want a create a macro variable by taking all the values of the variable into the macro variable
ex;-
data ds1;
set sashelp.class;
run;
Do want all values of one variable stored in a macro variable or do you want all values of all variables in one macro-variable?
As said by @Kurt_Bremser, storing data in macro variables is almost always not necessary and you will be forced to write more code, than necessary.
This is, by the way, one of the very, very rare cases, in which using proc sql is justified:
proc sql noprint;
select Name
into :NameList separated by ' '
from sashelp.class
;
quit;
... View more