或者,使用point=也可以:
data a;
do i=0 to 4 by 1;
j=1+i*10;
point=j;
output;
end;
stop;
input id $ ;
cards;
。。。
。。。
。。。作者: shiyiming 时间: 2010-10-15 13:13 标题: Re: 怎样读区间的数据? [code:3fl3qzai]data temp;
do group=1 to 3;
do no=1 to 10;
output;
end;
end;
run;
data out;
do _n_=1 by 1 until(last.group);
set temp;
by group;
if mod(_n_,3)=1 then output;
end;
run;[/code:3fl3qzai]作者: shiyiming 时间: 2010-10-15 22:58 标题: Re: 怎样读区间的数据? 非常感谢! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->作者: shiyiming 时间: 2010-10-16 17:13 标题: Re: 怎样读区间的数据? [code:1gvekmsv]data out;
do _n_=1 by 1 until(last.group);
set temp;
by group;
if mod(_n_,3)=1 then output;
end;
run;[/code:1gvekmsv]
我一直不明白为什么下面的程序是错误的,无法得到结果, 那位牛人知道?
data out;
set temp;
by group;
do _n_=1 by 1 until(last.group);
if mod(_n_,3)=1 then output;
end;
run;