data have;
set have;
by id;
if first.id then seq=1;
else seq+1;
run;
data want;
set have;
do i=1 to nobs;
set have(rename=(id=idh point=pointk seq=seqh)) nobs=nobs point=i;
if id<idh and seq=seqh then output;
end;
run;
proc sort data=want out=want(drop=seq seqh);
by id idh seq seqh;
run;


雷达卡



多谢多谢了。不知道怎么把金币给你,是设为最佳答案就可以了吗?
京公网安备 11010802022788号







