楼主: jiangshq
12889 6

[求助]Integer divide by zero. 是什么意思? [推广有奖]

  • 0关注
  • 0粉丝

初中生

61%

还不是VIP/贵宾

-

威望
0
论坛币
62 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
180 点
帖子
22
精华
0
在线时间
9 小时
注册时间
2007-4-30
最后登录
2016-3-31

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

Integer divide by zero.

运行proc时出现上面的错误,是什么意思,请高手指教!

二维码

扫码加我 拉你入群

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

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

关键词:Integer divide 是什么意思 Inte zero 意思 zero Integer divide

回帖推荐

lovejiang 发表于4楼  查看完整内容

我找到问题的所在了,我的那个数据是利用ststatransfer 软件将spss的数据导成sas格式的,我一对它进行排序,log里就出现了上面的error,你把它用set语句重新转换成sas数据库就行了,data tmp1.a2;set tmp1.a1;run;

bakoll 发表于6楼  查看完整内容

Why do I get an "Integer Divide by Zero" error when using a SAS data file? Please Note! The problem described here only applies to Stat/Transfer Version 7 and earlier. This problem has been remedied in Stat/Transfer Version 8 and above. Say that you used Stat/Transfer to make a SAS data file called c:\mydata\hartman.sas7bdat and you go to use it in a statistics procedure (in our example, pro ...

本帖被以下文库推荐

学好统计,捍卫科学!!
沙发
lovejiang 发表于 2007-11-20 09:00:00 |只看作者 |坛友微信交流群

同问,请各位大侠不吝赐教

使用道具

藤椅
rain958 发表于 2007-11-20 09:15:00 |只看作者 |坛友微信交流群
整数被零除 ?

使用道具

板凳
lovejiang 发表于 2007-11-20 09:37:00 |只看作者 |坛友微信交流群

我找到问题的所在了,我的那个数据是利用ststatransfer 软件将spss的数据导成sas格式的,我一对它进行排序,log里就出现了上面的error,你把它用set语句重新转换成sas数据库就行了,

data tmp1.a2;
set tmp1.a1;
run;

已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 10 热心帮助其他会员

总评分: 经验 + 3  论坛币 + 10   查看全部评分

使用道具

报纸
布莱特 发表于 2007-11-20 11:16:00 |只看作者 |坛友微信交流群

阿,我也遇到过这个问题,感谢阿!

将spss的数据存储成sas的数据格式,排序经常遇见这问题!

使用道具

地板
bakoll 发表于 2015-5-30 10:10:30 |只看作者 |坛友微信交流群
Why do I get an "Integer Divide by Zero" error when using a SAS data file?

Please Note! The problem described here only applies to Stat/Transfer Version 7 and earlier. This problem has been remedied in Stat/Transfer Version 8 and above.

Say that you used Stat/Transfer to make a SAS data file called c:\mydata\hartman.sas7bdat and you go to use it in a statistics procedure (in our example, proc reg) like below

proc reg data="c:\mydata\hartman";
  model y = time cond;
run;
and you get the following error in the log file.

NOTE: PROCEDURE REG used:
      real time           0.00 seconds
      cpu time            0.00 seconds

ERROR: Integer divide by zero.
NOTE: The SAS System stopped processing this step because of errors.
20   proc reg data="c:\mydata\hartman";
21     model y = time|cond;
22   run;
23
What went wrong?  Sometimes Stat/Transfer may make a SAS file that SAS has trouble reading in a statistical procedure, but there is a workaround.  You can make a copy of the data file in SAS (because SAS can read the file in a data step) and then use the copy.  For example,

data hartman;
  set "c:\mydata\hartman";
run;

proc reg data=hartman;
  model y = time cond;
run;
and then the log file shows that this worked,

72   data hartman;
73     set "c:\mydata\hartman";
74   run;

NOTE: There were 9 observations read from the data set c:\mydata\hartman.
NOTE: The data set WORK.HARTMAN has 9 observations and 3 variables.
NOTE: DATA statement used:
      real time           0.00 seconds
      cpu time            0.00 seconds


75
76   proc reg data=hartman;
77     model y = time cond;
78   run;

NOTE: 9 observations read.
NOTE: 1 observations have missing values.
NOTE: 8 observations used in computations.
79   quit;

NOTE: PROCEDURE REG used:
      real time           0.02 seconds
      cpu time            0.02 seconds
Now everything looks good and you can proceed to analyze the copy of your data file.

使用道具

7
wh7064rg 发表于 2015-5-30 10:19:08 |只看作者 |坛友微信交流群
谢谢分享

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-20 05:13