Print the report. PROC PRINT creates a report that includes three variables. ODS writes the report to the BODY file.


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;