data s1 s2 s3 s4 s5;
set a;
if obs<=60000 then output s1;
if 60000<obs<=120000 then output s2;
if 120000<obs<=160000 then output s3;
if 160000<obs then output s4;
run;
data two;
input a @@;
cards;
1 2 3 4 5 6 7 8 9 10
;
run;
data one (keep=num);
set two nobs=total end =last;
if last;
num=total;
run;
这里的nobs选项可以表示读入的总的观测数。
不知道其他的简单办法了。