I am looping symput in a macro with a list of selected variables. I have no problem run the symput command outside the macro; But when I put it in the macro, it always report error. %marcro( varlist=,…….) %let var1 = %qscan(&varlist, i) ……… %do %while(…….); data _null_; set a1 end=no_more; call symput( 'MU'||left(_N_), &var1._Mean); call symput( 'SD'||left(_N_), &var1._stdDev ); if no_more then call symput('count',_n_); run; …………….. %end; %mend; Error message like this : NOTE: Line generated by the macro variable "VAR1". 1 PDT_Vpp_Mean ----- 22 ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, ',', -, /, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=. 253: LINE and COLUMN cannot be determined. ***************** Please advise me how to solve this problem. Thanks! Andrew
... View more