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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 17 replies
  • 2031 views
  • 0 likes
  • 5 in conversation