h***i 发帖数: 115 | 1 书上的例子
1. p403
%macro counts (cols=_all_,rows=,dsn=all);
proc freq data=&dsn;
tables
%if &rows ne %then &rows * ; (为什么这里需要 ; ) ???
&cols;
run;
%mend counts;
%counts(dsn=all,cols=paid,rows=course_number)
2. P394 point 7
%macro outer;
%local variX;
%let variX=one;
%inner
%mend outer;
%macro inner;
%local variY;
%let variY=&variX;
%mend inner;
%let variX=zero;
%outer
书上说when executes macro Inner, the local Macro variable variY is assigned
the other local macro variabl |
|