Print the customized report. PROC PRINT creates a report that includes three variables. ODS writes the report to the body file. This PROC PRINT step is the same one that was used with the default style earlier.
proc print data=energy noobs; var state type expenditures; format division divfmt. type usetype. expenditures comma12.; by division; where division=2 or division=3; run;