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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 3504 views
  • 0 likes
  • 5 in conversation