Hi, Can anyone help me with the below error. data _null_; set macro_name(firstobs=1 obs=10); n+1; call execute('proc reg data=macro_var outest=out EDF; model dPD='||name||'/noprint; run; Data _null_;call symput(''NN'','||trim(left(n))||');run; Data _null_;set out(keep=_RSQ_ '||trim(left(name))||'); call symput(''RSQ'''||&NN||',_RSQ_); WARNING: Apparent symbolic reference NN not resolved. ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant, a missing value, INPUT, PUT. run;' ); run; I am trying to create 10 macro variables RSQ1,...,RSQ10 with assigned values from table out, sequentially. The error comes when concatenating RSQ with NN which is assigned 1,...,10. If anyone can help on this error that would be great. John
... View more