BookmarkSubscribeRSS Feed
BabyWS2001
Calcite | Level 5

Thanks,so if use sort do you use the Proc Sort or Order statement? Cause I can't seem to sort the mean once i use Class statement code as stated below...

I can't use Class SalePrice/Ascending as it will show all the mean saleprice and not group by the FloorAreaCat....

 

Proc Mean data=work.analysis mean;

 Class FloorAreaCat;

 var SalePrice;

Run;

Reeza
Super User
You need to first store your data in a data set then you sort that data set.
BabyWS2001
Calcite | Level 5

Ok, I will sort that dataset first. Thanks.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register 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
  • 17 replies
  • 3864 views
  • 0 likes
  • 5 in conversation