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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.