Please work more so we work less to help you. There is way too much code that is irrelevant to your question.
Simplify your problem to a bare-bone example.
Maybe this will help:
proc report data=SASHELP.CLASS nowd;
where NAME =:'J';
column SEX NAME N;
define SEX / group;
define NAME / order;
define PCTSEX / computed;
define N / noprint;
compute before ;
TOT=N;
endcomp;
break after SEX /style=[just=left];
compute after SEX ;
PCTSEX=N/TOT;
line N 2. ' ' SEX $1. ' (' PCTSEX percent6.0 ')' ;
endcomp;
run;
Sex
Name
F
Jane
Janet
Joyce
Judy
4 F ( 57% )
M
James
Jeffrey
John
3 M ( 43% )
... View more