What do you want a percent and total of? It isn't clear from your code what you are attempting.
For instance, what is the purpose of this bit of code? I don't see a real need for a new dataset if all you are doing is renaming a variable.
DATA meanout2(DROP=_type_ _freq_);
LENGTH percent 8 ;
SET meanout1;
Percent='' ;
RENAME ageatstart=report_stat;
RUN;
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!