%macro excel(datapath=,dataname=,datanum=);
%do i=1 %to &datanum;
data &dataname&datanum;
infile "&datapath&dataname(&i).csv"
dsd delimiter=','
firstobs=2 truncover lrecl=1000;
informat province $8.;
informat city $10.;
informat make $12.;
informat family $20.;
informat description $80.;
informat mile $16.;
informat business $70.;
input
province$ city$ make$ family$ description$ registration_time color$ mile$ web_price newprice
tax sj business$ websource$ tt url$ gathertime cheyuanhao$;
run;
%end;
%mend;
%excel(datapath=C:\Users\YUAN\Desktop\样本20181225\,dataname=a,datanum=5);
提示
没有解析符号引用 dataname(
error:物理文件ers\YUAN\Desktop\样本20181225\&dataname(&i).csv不存在
代码哪里有问题么,烦请看一下噻多谢