options linesize=96 pagesize=54 nocenter nodate nonumber; title 'World Wide Product Sales Report'; %tab2htm(capture=on, runmode=b); proc tabulate data=sashelp.prdsal2 formchar='82838485868788898a8b8c'x; table state, (actual predict ) * (sum*f=dollar14.2 mean*f=dollar14.2); var actual predict; class state; keylabel sum="Total"; keylabel mean="Average"; run; %tab2htm(capture=off, runmode=b, openmode=replace, htmlfile=ex2.html, brtitle=Tabulate Formatter Example, center=Y, tsize=+3);