Boy have I got a task for you!
Here's an industrial-strength summarization engine, thanks to PROC MEANS.
From Enterprise Guide:
Open the dataset you want to summarize (I'm using SASHELP.SHOES as an example).
Select Describe -> Summary Statistics
On the Data tab, pull the variables you want to summarize into "Classification Variables". I used Region, Product, and Subsidiary.
On the Data tab, Pull one numeric variable into "Analysis Variables" (that's the only downside, you need one numeric variable, even though you don't use it for anything.) Make sure it's always non-null.
On the "Statistics" "Basic" tab, untick everything except "Number of Observations".
On the "Results" tab, untick "Show Statistics", and tick "Save statistics to data set". That will give you a summary dataset. Set "Combinations of classification variables" to "All ways".
Click "Run".
You'll get a dataset that will show all of the 0-way (summary for the dataset), 1-way (Region, and 2 others), 2-way (Region by Product, and two others) and 3-way (all three variables) summarizations of the data.
Tom
... View more