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!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.