全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1557 5
2011-07-25
不知道是什么原因,我设置成其他种子的时候,程序都没有问题,为什么设成我截图中的种子后就出现log的提示问题呢?
意思就是:%dta(seed1=201107241252,seed2=201107242252,pro=0.1,length=300);是没有问题的,可以正常运行;

但是,换成%dta(seed1=201107241286,seed2=201107242286,pro=0.1,length=300);就不能运行了,出现了截图中的提示。

哪位大侠帮忙解答一下?
附件列表
QQ截图未命名.jpg

原图尺寸 127.75 KB

QQ截图未命名.jpg

二维码

扫码加我 拉你入群

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

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

全部回复
2011-7-25 10:51:16
seed<=2**31-1
二维码

扫码加我 拉你入群

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

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

2011-7-25 10:54:11
yugao1986 发表于 2011-7-25 10:51
seed
可否具体一点?您的意思是:seed的长度不能超过2**31-1?
二维码

扫码加我 拉你入群

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

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

2011-7-25 11:12:07
不是长度,是seed的大小
二维码

扫码加我 拉你入群

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

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

2011-7-26 11:32:12
leedx 发表于 2011-7-25 10:45
不知道是什么原因,我设置成其他种子的时候,程序都没有问题,为什么设成我截图中的种子后就出现log的提示问题呢?
意思就是:%dta(seed1=201107241252,seed2=201107242252,pro=0.1,length=300);是没有问题的,可以正常运行;

但是,换成%dta(seed1=201107241286,seed2=201107242286,pro=0.1,length=300);就不能运行了,出现了截图中的提示。

哪位大侠帮忙解答一下?
Seed needs to be less than 2**31.  Otherwise it will issue an running time error message. See below.

1106  data t1;
1107     call streaminit(2**31-1);
1108     x=rand('normal',0,1);
1109     seed=2**31-1;
1110  run;
NOTE: The data set WORK.T1 has 1 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

1111
1112  proc print;run;
NOTE: There were 1 observations read from the data set WORK.T1.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

1113
1114  data t1;
1115     call streaminit(2**31);
1116     x=rand('normal',0,1);
1117  run;
NOTE: Argument 1 to function STREAMINIT at line 1115 column 9 is invalid.
x=1.1509362693 _ERROR_=1 _N_=1
NOTE: The data set WORK.T1 has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
二维码

扫码加我 拉你入群

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

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

2011-7-26 23:28:34
bobguy 发表于 2011-7-26 11:32
leedx 发表于 2011-7-25 10:45
不知道是什么原因,我设置成其他种子的时候,程序都没有问题,为什么设成我截图中的种子后就出现log的提示问题呢?
意思就是:%dta(seed1=201107241252,seed2=201107242252,pro=0.1,length=300);是没有问题的,可以正常运行;

但是,换成%dta(seed1=201107241286,seed2=201107242286,pro=0.1,length=300);就不能运行了,出现了截图中的提示。

哪位大侠帮忙解答一下?
Seed needs to be less than 2**31.  Otherwise it will issue an running time error message. See below.

1106  data t1;
1107     call streaminit(2**31-1);
1108     x=rand('normal',0,1);
1109     seed=2**31-1;
1110  run;
NOTE: The data set WORK.T1 has 1 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

1111
1112  proc print;run;
NOTE: There were 1 observations read from the data set WORK.T1.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

1113
1114  data t1;
1115     call streaminit(2**31);
1116     x=rand('normal',0,1);
1117  run;
NOTE: Argument 1 to function STREAMINIT at line 1115 column 9 is invalid.
x=1.1509362693 _ERROR_=1 _N_=1
NOTE: The data set WORK.T1 has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
thank you very much。 我在学习学习,看看~~
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群