There have been a lot of questions on this general topic (selecting the most recent date value) so I have contacted the development team about it. They are working on this for a future release.
If you were not aware, the Now operator produces the current datetime value, so you can use DatePart(Now()) to get today's date. But this is not ideal if your data doesn't build every day. We would like to add a simple way to select the most recent date value (as well as the oldest value.)
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.