I am making a table which has both a total row and a total column. The lower right cell is supposed to be a total of all the row totals above it. The column and row totals are calculated differently to compensate for weights, so the column totals cannot be used for this.
I can get the sum for the lower right cell using proc sql, but I can't figure out how to get it into the table. The best I can think of is using a macro to define a global variable, but I can't quite get that to work. Any suggestions?
The best feedback from forum subscribers will be gained by first sharing your code and an input and output data example (small but representative). Also, info about your SAS version, OS platform, sometimes helps, as well.