There's this one but it's definitely overkill for what OP is doing. https://communities.sas.com/t5/SAS-Communities-Library/Demographic-Table-and-Subgroup-Summary-Macro-TABLEN/ta-p/634030 A quick PROC FREQ and REPORT is easier. The code here does something similar as well. https://gist.github.com/statgeek/0c4aeec9053cf8050be18a03b842c1b9
... View more