楼主: qingww
3009 1

[原创博文] 菜鸟问一个SAS 问题 [推广有奖]

  • 0关注
  • 0粉丝

本科生

7%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
488 点
帖子
103
精华
0
在线时间
9 小时
注册时间
2009-7-8
最后登录
2010-11-20

楼主
qingww 发表于 2010-10-26 03:24:11 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
请问
what is the effect of setting ERRORS=1?

谢谢!!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:setting Effect Errors Error FECT setting

沙发
bobguy 发表于 2010-10-28 07:45:28
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
已有 2 人评分论坛币 学术水平 热心指数 收起 理由
crackman + 20 + 1 + 1 一堆英语,幸好看的懂
pobel + 1 + 1 精彩帖子

总评分: 论坛币 + 20  学术水平 + 2  热心指数 + 2   查看全部评分

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-6 03:01