Agreed, but you get order subid=4,1,2,3 and 4,1,3,2 was requested. Maybe they wanted data want; do i = 1 to ceil(last/2); p = last - i + 1; set have point=p nobs=last; output; if i < p then do; set have point=i; output; end; end; stop; drop i; run; PG
... View more