hi pgstate, could you please explain it...why _n_ does not change do untill() loop. See, let me explain my prblem again... I have 100 obs n two variables Actual and predict. I have to group them in 10 groups each and take sum.of each of 10 groups will make an output dataset with 10 observation which are grouped n summed. as we can achieve using.. Proc Rank data=DSN groups=10; Var Actual; run; and then can get the cumulative sum using first. n last. And I want to replace proc rank with Do Until() loop.
... View more