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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 944 views
  • 2 likes
  • 4 in conversation