Try the GROUP option in PROC REPORT, which I think does it by default. In general, REPORT will provide you more options for customizing your output as desired. See Page 5 http://support.sas.com/resources/papers/proceedings12/242-2012.pdf
... View more