How to print the first 10 and last 10 observations in SAS?

Viewed 20637

I'm trying to find a way to only print the first 10 and last 10 observations of my SAS dataset. Is there a way I could do this?

I tried proc print data = ia.usage; where Obs < 10 & Obs > 80;run; But the command still prints out all 90 observations. Any idea on how to do this easily?

Thanks.

2 Answers
Related