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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 750 views
  • 2 likes
  • 4 in conversation