BookmarkSubscribeRSS Feed
RPYee
Quartz | Level 8

I need to produce a Top N Report in SAS EG 8.3.  I used to do it in SAS EG 7.1, but I cannot, for the life of me, figure out how to accomplish it in SAS EG 8.3.  If someone could walk me through the steps, I'd be forever grateful 🙂

RPYee

___________________________________
The fact that I ask for help simply means I am inexperienced and under-educated. Please don't assume I am incompetent and uneducated.
1 REPLY 1
ChrisHemedinger
Community Manager

There are a few ways to do this but this blog post from @Rick_SAS provides a simple method.

 

%let TopN = 10;
proc freq data=sashelp.cars ORDER=FREQ;
  tables make / maxlevels=&TopN Plots=FreqPlot;
run;
Become an Explorer! Join SAS Analytics Explorers to learn and complete challenges that earn rewards!

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1162 views
  • 1 like
  • 2 in conversation