Proc freq descending order?

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 138
Accepted Solution

Proc freq descending order?

Hi,

I am wondering if it is possible to do a proc freq such that SAS displays the variables in order of descending frequency (that is, whichever value occurs most frequently will be listed first, and so on).

Any help is much appreciated.

Thanks!


Accepted Solutions
Solution
‎06-04-2013 10:34 AM
Super User
Posts: 11,343

Re: Proc freq descending order?

Posted in reply to Walternate

On the proc statement add ORDER=FREQ to get the descending counts.

View solution in original post


All Replies
Solution
‎06-04-2013 10:34 AM
Super User
Posts: 11,343

Re: Proc freq descending order?

Posted in reply to Walternate

On the proc statement add ORDER=FREQ to get the descending counts.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 159 views
  • 0 likes
  • 2 in conversation