sniperhgy 发表于 2015-10-20 15:43 
请让我看看你完整的代码,只言片语可看不出问题啊。
filename xlsxfile pipe 'dir /B /A-D "C:\Users\Administrator\Desktop\粘贴word_芐雨\*.docx" 2>nul | find /V /C ""';
data txt_file_count;
length txt_file_count 8 xlsx_file_count 8 a_file_count 8;
infile txtfile truncover;
input txt_file_count best8.;
infile xlsxfile truncover;
input xlsx_file_count best8.;
infile afile truncover;
input a_file_count best8.;
put txt_file_count xlsx_file_count a_file_count;
run;