The PROC PRINT steps print the two output data sets that ODS created. The output from these two steps is written to the current body file, odsoutput-printbody.htm.
proc print data=energyoutput noobs;
   title 'Output Data Set from the First BY Group';
run;

proc print data=energyoutput1 noobs;
   title 'Output Data Set from the Second BY Group';
run;