ERROR 22-322: Expecting a name.
ERROR 76-322: Syntax error, statement will be ignored.
ERROR: Import unsuccessful. See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used:
real time 0.37 seconds
cpu time 0.32 seconds
ERROR: File WORK.OUTDATA.DATA does not exist.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set SASUSER.TEST may be incomplete. When this step was stopped there were 0
observations and 0 variables.
WARNING: Data set SASUSER.TEST was not replaced because this step was stopped.
NOTE: DATA statement used:
real time 0.01 seconds
cpu time 0.01 seconds[/quote:e14bb]作者: shiyiming 时间: 2004-5-10 16:43 标题: 试试这个。 [quote="Jerry":b9503]ugly code <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
%if &i<10 %then %let str=00&i.;
%else %if &i<100 %then %let str=0&i.;
%else %let str=&i;
proc import datafile="d:\data\记录表&str..xls"
%mimport;[/quote:b9503]