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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.