各位大侠,请指教!下面的程序里面,我自己认为没有错误,为什么每次运行的时候,都提示我D:\WORLDSCOPE\INT-&N.txt不存在呢?
请各位告诉可以吗,我怎么试验都不可以
%macro MTEST(N);
%do i=1 %to &N;
data WORK.int&N ;
%let _EFIERR_ = 0; /* set the ERROR detection macro variable */
infile 'D:\WORLDSCOPE\INT-&N.txt' delimiter='09'x MISSOVER DSD lrecl=32767 firstobs=2 ;
informat ______________00100000____001001 $97. ;
format ______________00100000____001001 $97. ;
input ______________00100000____001001 $ ;
if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */
run;
data mysas.int&N;
length wscode $9 year$4 frequency$1 field$5 value1$19 value2$3 currency$3;
set int&N(rename=(______________00100000____001001=temp));
wscode=substr(temp,1,9);
year=substr(temp,10,4);
frequency=substr(temp,14,1);
field=substr(temp,18,5);
value1=substr(temp,52,19);
value2=substr(temp,71,3);
currency=substr(temp,92,3);
keep wscode year frequency field value1 value2 currency;
run;
%end;
%mend MTEST;
%MTEST(7)