引数を解決し、実行用に解決された値を次のステップの境界で発行します。
| 種類: | DATAステップCALLルーチン |
次のいずれかの種類が表示されます。
call execute('%sales');call execute(findobs);
call execute('%sales('||month||')');call execute('%nrstr(%sales('||month||'))');%macro overdue;
proc print data=late;
title "Overdue Accounts As of &sysdate";
run;
%mend overdue;
data late;
set Sasuser.Billed end=final;
if datedue<=today()-30 then
do;
n+1;
output;
end;
if final and n then call execute('%overdue');
run;data dates;
input date $;
datalines;
10nov11
11nov11
12nov11
;
data reptdata;
input date $ var1 var2;
datalines;
10nov11 25 10
10nov11 50 11
11nov11 23 10
11nov11 30 29
12nov11 33 44
12nov11 75 86
;
%macro rept(dat,a,dsn);
proc chart data=&dsn;
title "Chart for &dat";
where(date="&dat");
vbar &a;
run;
%mend rept;
data _null_;
set dates;
call execute('%rept('||date||','||'var1,reptdata)');
run;