Most of us on the SAS forum have little or no experience with STATA. You may get better help if tell us what that STATA code is supposed to actually do.
As a minimum you might at least list your existing SAS variable names and which are numeric and which are character.
2025 SAS Hackathon: There is still time!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!