Hello all, Is there a easy way to get totals by sub-group and a total overall in the same column? So that for example in the code below- proc sql; create table numbers as select A.MRSA_CLASS, put(sum(com)/count(*), percent10.) as compliance,put(sum(TEST)/count(*), percent10.) as TESTED, from MRSA_ADM_ARR as a group by A.MRSA_CLASS; quit; I will get CLASS Compliance Tested A 75% 90% B 55% 65% ... .. .. Z 80% 90% What I would like is the above but also a grand total at the bottom without necessarily doing the code twice, one with grouping, one without. Thank you again for your time. Best, Lawrence
... View more