Hi ,
I'm trying to write a macro that will include a "call symput" part.
I have a data set of 1 observation , that has the following variables:
intercept, &var1 and &var2.
I want to assign 3 macro variables:
intercept21
var1
var2
that will store these values.
How can I do it?
Thanks!
%macro reg_fill(indat,var1,var2,stat_id);
data _null_; set &indat;
call symput ("Intercept&stat_id.",Intercept);
call symput ("&var1.",&var1);
call symput ("&var2.",&var2);
run;
%put &var1. &var2.;
%mend reg_fill;
%reg_fill(data,O3,NOx,21);
... View more