Yes, I have. I now obtain the total that I need in the variable TOTALCT. However, the output that I get under the OUTPUT DATA tab is a table showing type, frequency, and total. The output that I need is a table showing all the original variables x1-x12, with x13 added on. Therefore, I need to use PROC PRINT, but at this moment, nothing shows up under the results tab. PROC MEANS DATA = EXAMPLE NOPRINT;
OUTPUT OUT = example SUM(x12) = TOTALCT;
run;
DATA PCT;
MERGE example; BY x1;
x13 = (x12 / TOTALCT) * 100;
RUN;
PROC PRINT DATA = PCT;
RUN;
... View more