1. <> in sql is not equal, while in SAS it is max, so change that to not equals
2. --('998.4','998.7') is a comment in SQL, remove that from the code or use SAS commenting
3. You'll have to make sure you specify the dates correctly but I *think* it should work from tehre.
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.