Thank you. I think it's better to do it as you instructed. Count the row number within each page beforehand, and then use proc report. I was expecting no matter how I change ps= options, the counting variable would count for row number within each page. But maybe the method I create is rarely useful.
... View more