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.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.