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