%macro new;
%do j=1 %to 6;
%if &j^=2 %then %do;
%do i=1 %to 7;
%put i=&i j=&j;
%end;
%end;
%end;
%mend new;
%new;
已经解决了
定义宏变量必须加&