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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.