Greetings Community
I have the following dataset:
ID | Date_of_Vaccination | Address_Date | address Street | Address City | Address ZIP | Address State |
123458A | 11FEB2015 | 02JUN2011 | 123 Montana St | Blue Whale | 25321 | MT |
123458A | 17JUN2017 | 31JUL2015 | 345 North Carolina Rd | White Whale | 72152 | NC |
587987Z | 27MAR2018 | 01MAR2017 | 980 Lee Hwy | Black Whale | 98754 | TX |
587987Z | 10JAN2018 | 05JAN2001 | 1780 Middle St | Red Whale | 12345 | NV |
And I need the latest row from each ID as following:
ID | Date_of_Vaccination | Address_Date | address Street | Address City | Address ZIP | Address State |
123458A | 17JUN2017 | 31JUL2015 | 345 North Carolina Rd | White Whale | 72152 | NC |
587987Z | 10JAN2018 | 05JAN2001 | 1780 Middle St | Red Whale | 12345 | NV |
Many thanks.
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
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.