there is a new feature coming out that will do SUMMARIZATIONs on ACROSS fields, but it isn't ready right now. Also, it would have to be tweaked to do your AVE anyway. So, here is what I recommend.
Let's say you had the code
TABLE FILE CAR
SUM COMPUTE TOTAL = RCOST + DCOST;
COMPUTE NUMBER = SALES;
BY COUNTRY
BY CAR
ACROSS BODYTYPE
END
To get out the totals the easiest way, USE sortgroup in the PAINTER, to make your code look like:
TABLE FILE CAR
=* c1 c2
SUM RCOST NOPRINT DCOST NOPRINT
-* C3
COMPUTE COL1 = RCOST + DCOST; NOPRINT
-* C4
COMPUTE COL2 = AVE.SALES; NOPRINT
BY COUNTRY
BY CAR
SUM COMPUTE TOTAL = RCOST + DCOST;
NUMBER = SALES;
BY COUNTRY BY CAR
ACROSS BODYTYPE
COMPUTE TOTAL1 = C3; AS 'TOTAL'
TOTAL2 = C4;
END
That should give you what you want.
You might look at:
http://techsupport.informationbuilders.com/sps/20442045.html and
http://techsupport.informationbuilders.com/sps/20262069.htmlon the techsupport web site.
WEFOCUS - All releases starting at 4.3.6
MF FOCUS -- All releases starting at 3.8.68
OS/Platfor _ Predominately Z/OS, but all others as swell
Expected Output Format -- *