data list ;
filename chns pipe 'dir F:\课程科研\UNC-CHNS\c89.0896/b';
length name $20.
dirname $90.;
infile chns truncover;
input name $30.;
dirname=quote('F:\课程科研\UNC-CHNS\c89.0896\'||name);
obs=_n_;
proc sql noprint;
select count(*) as num into:number from list;
%chns(&number);
run;
%macro chns (num);
%do i=1 %to #
proc sql noprint;
libname chns 'e:\sandai';
libname chns1 'e:\sandai1';
select dirname into:dir from list where obs=&i.;
libname chns1 xport &dir;
proc copy in=chns1 out=chns;
run;
%end;
%mend chns;
我想把文件路径作为参数 F:\课程科研\UNC-CHNS\c89.0896
如何做呢
谢谢各位高手了