Calculated values in PROC REPORT Compute Blocks

This post was kindly contributed by The SAS Training Post - go there to comment and to read the full post.

Dear Miss SAS Answers, In PROC REPORT can I use one calculated (computed) variable in the calculation of another computed variable? In the example below, I’m trying to use the value of the Bonus column to calculate the Total column:   compute Bonus;     Bonus =sal.sum*0.05;   endcomp;   compute Total;     total=sum(sal.sum, Bonus.sum);   endcomp; […]

This post was kindly contributed by The SAS Training Post - go there to comment and to read the full post.