@vincent_s_jones I just checked your code, and have corrected yours too-
proc report data=salaries;
column type team salary salary_saving bonus;
define type / group 'Type';
define team / display;
define bonus / analysis format=dollar32.2 ;
define salary / analysis format=dollar32.2 ;
define salary_saving / computed noprint ;
compute bonus;
salary_saving = bonus.sum+salary.sum;
endcomp;
break after type / summarize
style=[font_weight=bold background=lightgray];
compute after type ;
line 'Total ' salary_saving ;
endcomp;
run;
The problem is in your COMPUTE Salarysavings block. NOTE: Bonus values are not available yet. So you may have to move your salarysavings after bonus in column statement or use bonus in your compute block-
This is the culprit
compute salary_saving; salary_saving = bonus.sum+salary.sum; endcomp;
This is the correction:-
compute bonus; salary_saving = bonus.sum+salary.sum; endcomp;
... View more