e****e 发帖数: 50 | 1 Suppose A1=DOG,B1=APPLE;想创造一个新MACRO VARIABLE,&DOG_APPLE,但是怎么都读不
出来,
用在MACRO LOOP里面的,有I和J两个INDEX,&&&A&I.._&&B&J..,&&&A&I.._&&B&J...都不
行.请高手支招,THANKS
%macro counts;
%do i=1 %to 5;
%do j=1 %to 5;
proc sql noprint;
select count(*) into:&&A&I.._&&B&J.. from out.&&A&I.._&&B&J.. ;
quit;
%put &&&A&I.._&&B&J.. ;
%end;
%end;
%mend counts;
%counts; | w*******9 发帖数: 1433 | 2 Try select count(*) into:&&A&I.._&&B&J from out.&&A&I.._&&B&J ; |
|