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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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