%macro change();
%let a=1;
%do %until(&a.>22);
proc sql noprint;
select distinct location
into:loc
from location
where location_code=&a.;
quit;
data locson;
set location(where=(location=&loc.));
quit;
data _null_;
set locson nobs=b;
%let c=b;
quit;
data risk;
set riskmap(where=(location=&loc.));
quit;
%let d=1;
%do %until(&d.>&c.);
proc sql noprint;
select location_son
into:lson
from locson
where _n_=&d.;
quit;
data map&a.&d.;
set risk;
location=symget("lson");
quit;
proc append base=null data=map&a.&d.;
quit;
&d+1;
%end;
&a+1;
%end;
%mend change;
%change;



雷达卡


京公网安备 11010802022788号







