楼主: fu686cn
1269 2

sas iml模块overflow error [推广有奖]

  • 1关注
  • 0粉丝

初中生

71%

还不是VIP/贵宾

-

威望
0
论坛币
4 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
273 点
帖子
19
精华
0
在线时间
17 小时
注册时间
2008-4-5
最后登录
2013-10-10

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
options errorabend cpucount=8;
libname useg 'D:\useg';
%macro uh(x);
        proc sql noprint;
                select count(*) as n_train into: n_train from useg.Uid_htl_comm3_1;
        quit;
        %do k=1 %to 20;
                %do i=1 %to &x;
                        data useg.u_&i;
                                set useg.u;
                        run;
                        data useg.h_&i;
                                set useg.h;
                        run;
                        data useg.uh_train_&i;
                                set useg.Uid_htl_comm3_1(where =( (&i-1)/&x * &n_train < id <= &i/&x * &n_train ));
                                keep m n score;
                        run;
                        proc sql noprint;
                                select count(*) as n_train_&i into: n_train_&i from useg.uh_train_&i;
                        quit;
                        proc iml;
                                use useg.u_&i;
                                read all into u;
                                use useg.h_&i;
                                read all into h;
                                use useg.uh_train_&i var{m,n,score};
                                read all into r;
                                %do j=1 %to &&n_train_&i;
                                        %let m=r[&j,1];
                                        %let n=r[&j,2];
                                        u[&m,1]=u[&m,1]+0.1*( (r[&j,3]-(u[&m,1]*h[&n,1]+u[&m,2]*h[&n,2]))*h[&n,1]-0.1*u[&m,1] );
                                        u[&m,2]=u[&m,2]+0.1*( (r[&j,3]-(u[&m,1]*h[&n,1]+u[&m,2]*h[&n,2]))*h[&n,2]-0.1*u[&m,2] );
                                        h[&n,1]=h[&n,1]+0.1*( (r[&j,3]-(u[&m,1]*h[&n,1]+u[&m,2]*h[&n,2]))*u[&m,1]-0.1*h[&n,1] );
                                        h[&n,2]=h[&n,2]+0.1*( (r[&j,3]-(u[&m,1]*h[&n,1]+u[&m,2]*h[&n,2]))*u[&m,2]-0.1*h[&n,2] );
                                %end;
                                create useg.u from u;
                                append from u;
                                create useg.h from h;
                                append from h;
                        quit;
                        proc sql noprint;
                                drop table useg.uh_train_&i,useg.u_&i,useg.h_&i;
                        quit;
                %end;
        %end;
%mend;
%uh(50);/*输入要切分的子样本个数*/

当运行到K=2,i=39时iml模块报如下错误:
NOTE: 从数据集 USEG.UID_HTL_COMM3_1. 读取了 76373 个观测
      WHERE (id>2902185.4) and (id<=2978558.7);
NOTE: 数据集 USEG.UH_TRAIN_39 有 76373 个观测和 3 个变量。
NOTE: “DATA 语句”所用时间(总处理时间):
      实际时间          0.71 秒
      CPU 时间          0.71 秒
NOTE: “PROCEDURE SQL”所用时间(总处理时间):
      实际时间          0.00 秒
      CPU 时间          0.00 秒
NOTE: IML Ready
ERROR: Overflow error in *.

二维码

扫码加我 拉你入群

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

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

关键词:OverFlow Error flow Over Ver iml overflow error 求助 error

what will be will be
沙发
fu686cn 发表于 2013-9-25 14:37:47 |只看作者 |坛友微信交流群
小样本测试通过,380w行3列时执行报错
what will be will be

使用道具

藤椅
fu686cn 发表于 2013-9-29 14:36:25 |只看作者 |坛友微信交流群
没有人关注吗?
what will be will be

使用道具

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

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

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

GMT+8, 2024-5-13 22:55