The sascommunity tip of the day is hash sort.
http://www.sascommunity.org/wiki/Tip_of_the_Day:October_8
I thought it might be mildly interesting to generalize it and show an example of CALL VNEXT, my second favorite call routine.:smileysilly:
Not rigorously test your mileage may vary.
what is your first favorite call routine?
CALL MISSING of course. :smileylaugh:
DN: Do we get a step-by-step explanation so we can discover why it is your second favorite?
Is there something in there that I am missing that will make sure to sort by AGE SEX instead of by SEX AGE ?
The first variables are in the PDV in the same order as in the BY statement, because there was no prior reference to mess that up. But we usually refer to LAST. before the SET and BY as in DO UNTIL(LAST....); Not a problem here.
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!
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.