The ODS HTML statement closes the HTML destination and all the files that are associated with it. You must close the destination before you can view the output with a browser. The ODS PRINTER statement closes the Printer destination. You must close the destination before you can print the output on a physical printer.
ods html close;

ods printer close;