qingww 发表于 2010-10-26 03:24 
请问
what is the effect of setting ERRORS=1?
谢谢!!
See the difference below.
30 data t1;
31 do i = 1 to 12;
32 output;
33 end;
34 run;
NOTE: The data set WORK.T1 has 12 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.17 seconds
cpu time 0.01 seconds
35
36 options ERRORS=10;
37 data _null_;
38 set t1;
39 x=0;
40 a=1/x;
41 run;
NOTE: Division by zero detected at line 40 column 8.
i=1 x=0 a=. _ERROR_=1 _N_=1
NOTE: Division by zero detected at line 40 column 8.
i=2 x=0 a=. _ERROR_=1 _N_=2
NOTE: Division by zero detected at line 40 column 8.
i=3 x=0 a=. _ERROR_=1 _N_=3
NOTE: Division by zero detected at line 40 column 8.
i=4 x=0 a=. _ERROR_=1 _N_=4
NOTE: Division by zero detected at line 40 column 8.
i=5 x=0 a=. _ERROR_=1 _N_=5
NOTE: Division by zero detected at line 40 column 8.
i=6 x=0 a=. _ERROR_=1 _N_=6
NOTE: Division by zero detected at line 40 column 8.
i=7 x=0 a=. _ERROR_=1 _N_=7
NOTE: Division by zero detected at line 40 column 8.
i=8 x=0 a=. _ERROR_=1 _N_=8
NOTE: Division by zero detected at line 40 column 8.
i=9 x=0 a=. _ERROR_=1 _N_=9
NOTE: Division by zero detected at line 40 column 8.
ERROR: Limit set by ERRORS= option reached. Further errors of this type will not be printed.
i=10 x=0 a=. _ERROR_=1 _N_=10
NOTE: Mathematical operations could not be performed at the following places. The results of the
operations have been set to missing values.
Each place is given by: (Number of times) at (Line):(Column).
12 at 40:8
NOTE: There were 12 observations read from the data set WORK.T1.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
42
43 options ERRORS=1;
44 data _null_;
45 set t1;
46 x=0;
47 a=1/x;
48 run;
NOTE: Division by zero detected at line 47 column 8.
ERROR: Limit set by ERRORS= option reached. Further errors of this type will not be printed.
i=1 x=0 a=. _ERROR_=1 _N_=1
NOTE: Mathematical operations could not be performed at the following places. The results of the
operations have been set to missing values.
Each place is given by: (Number of times) at (Line):(Column).
12 at 47:8
NOTE: There were 12 observations read from the data set WORK.T1.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds