%macro im_1m1excel(RootPath=,FileName=,Extension=);
libname MyExcel Excel "&RootPath.\&Filename..&Extension";
proc sql noprint;
select catx('.',libname,memname)
into: namelist separated by ' '
from dictionary.tables
where libname in ('MYEXCEL');
quit;
%put &namelist;
data &FileName;
set &namelist;
run;
%mend im_1m1excel;
%im_1m1excel(RootPath=E:\refer\導(dǎo)入excel,FileName=%str(3),Extension=xls);
也就是說
libname MyExcel Excel "E:\refer\導(dǎo)入excel\3.excel";
然后myexcel里面有 myexcel.sheet1$ myexcel.sheet2$ myexcel.sheet3$
我想把這三個(gè)數(shù)據(jù)集導(dǎo)出來,用如下程序
data a;
set myexcel.sheet1$;
run;
proc catalog cat=myexcel.sheet1$;
copy out=a;
quit;
都出錯,顯示“$”無法識別,怎么才可以把這三個(gè)數(shù)據(jù)集弄成sas數(shù)據(jù)集呢
不知道如何把“$”去掉,或者別的方法,求大神幫幫忙。