%macro update(); data new1; %do i=9 %to 13; %do j=1 %to 12; %if %length(&i)=1 %then %let yr=%eval(200&i); %else %let yr=%eval(20&i); %if %length(&j)=1 %then mnth=%str(0&j); %else %let mnth=%eval(&j); %let vname=&yr&mnth; %put &vname.; %end; %end; %mend; %update; ERROR:- 201312 NOTE 137-205: Line generated by the invoked macro "UPDATE". 690 mnth=0&j ____ 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, ^=, |, ||, ~=. 201312 201310 201311 132 The SAS System 09:51 Wednesday, June 5, 2013 201312 NOTE 137-205: Line generated by the invoked macro "UPDATE". 690 mnth=0&j ____ 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, ^=, |, ||, ~=. 691
... View more