I have a table that has ID, Code, and Date. Each ID can have multiple codes, each occurring on a different date. I only want the ID & Code for the most recent date.
How do I do this?
Two (of many more perhaps) choices:
Two (of many more perhaps) choices:
Thank you! I was thinking about the double sort, but wasn't sure if the second sort would re-sort (and wipe out the first).
Ended up going with the join transformation option instead.
Thank you again!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.