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
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 ......
Besides of Proc Sort using Proc Rank is another option which also deals with ties.
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 16. Read more here about why you should contribute and what is in it for you!
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.