October 2009
Beginner
636 pages
13h 35m
English
A common technique in PROC PRINT is to create totals at the end of your of results. PROC PRINT creates totals for the variable you list in the SUM statement, as shown in the following code.
ODS HTML BODY='prttotals.html' STYLE=sasweb; proc print data=furniture noobs label; var Type Material Price; sum Price; run; ODS HTML CLOSE;
The resulting table is shown in Figure 19.45. This table has all of the results we need, but it could be made easier to read. By adding some formatting to the total, you can make the total stand out. In the following PROC PRINT step, a STYLE= option in the SUM statement applied to the "GrandTotal" area adds some space before the total by increasing the cell height, vertically ...
Read now
Unlock full access