RichardinOz's hint of proc means or summary is probably easiest to code if you want to summarize many variables as it allows the use of variable lists and such. proc means data=have noprint; class region; var amount1 - amount100; /* or such as _numeric_ as long your class variable isn't numeric, or v: for all variables starting with v */ output out=want sum=; run; There will be a variable _type_ that has levels of the class variable with the value of 0 indicating the overall total sum as well.
... View more