I thought I saw the same question posted somewhere else, and a response from Cynthia demonstrating the use of the Tabulate procedure.
You should look up the answer she gave, searching on the key words Tabulate and Class.
Since you say "Output", I presume you mean a report and her answer dealt specifically with rows defined by a classification variable, and summary variables reported under a classification variable.
In her final answer she also indicated where in EG you can find the Summary tables builder to build the table code.
Kind regards'
David