为什么文件名里有空格,filename就识别不了,如下:
options noxwait xsync;
filename dirpipe pipe"Dir D:\DATA\Analysts Forecasts";
Data _Null_;
infile dirpipe;
input;
put _n_ _infile_;
Run;
把路径改成 D:\DATA\AnalystsForecasts 没有了空格就可以了,如下:
options noxwait xsync;
filename dirpipe pipe"Dir D:\DATA\AnalystsForecasts";
Data _Null_;
infile dirpipe;
input;
put _n_ _infile_;
Run;