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.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.