Hi:
You're going to allow the user to select multiple ACROSS variables??? Or just one or two. In your example, you showed only category as the ACROSS variable, nested with Salary, N and Mean. The GROUP variables in PROC REPORT are what go down the rows -- so if the users select multiple GROUP variables, you would be OK.
Because the naming system follows a regular pattern, it is possible to write a SAS macro program to generate all the _cx_ statements you need as described in this paper on selected REPORT topics:
http://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf
If you are unfamiliar with the SAS Macro Facility, I recommend this paper as a good introduction:
http://www2.sas.com/proceedings/sugi28/056-28.pdf
cynthia
... View more