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.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.