BookmarkSubscribeRSS Feed
harveysarah0
Calcite | Level 5

Report the release dates listed for the 3 highest grossing albums in SAS’s default date

formatting.

 

Would you use procsort here?

Thought it might be something along these lines:

 

Proc sort data= Albums;
By ReleaseDate;
Run;

 

But I know I still need to incorporate the 3 highest grossing albums in there 

3 REPLIES 3
PaigeMiller
Diamond | Level 26

I'll give you a hint. If you ask to sort by ReleaseDate, then you learn which albums were released first, but you learn nothing about the amount of the gross revenue of the album. So, you need to sort by ......

--
Paige Miller
Reeza
Super User
You should be able to run that and see if it's the right answer. Is it giving you what you want? How would you do it in Excel?
Patrick
Opal | Level 21

Besides of Proc Sort using Proc Rank is another option which also deals with ties.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 3 replies
  • 459 views
  • 2 likes
  • 4 in conversation