tangliang0905 发表于 2013-2-22 01:55 
1.可以将log文件printto到txt文件中,然后在文件中用SCAN,或者index寻找“ERROR”,这样可以找到所有的err ...
Good tips:
The errors are usually caused by wrong syntax, or specify a non-exist variable, or say compiling errors.
One alway use run cancel; statement to check the syntax first. See below.
340 data a;
341 set sashelp.class;
342 where age2=0;
ERROR: Variable age2 is not on file SASHELP.CLASS.
343 run cancel;
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.A may be incomplete. When this step was stopped there were 0
observations and 5 variables.
WARNING: Data set WORK.A was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
344
345 proc means data=sashelp.class;
346 var _all_;
ERROR: Variable Name in list does not match type prescribed for this list.
ERROR: Variable Sex in list does not match type prescribed for this list.
347 run cancel;
WARNING: The procedure was not executed at the user's request.
NOTE: PROCEDURE MEANS used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds