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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.