The ODS HTML statement closes the HTML destination and all the files that are associated with it. The ODS OUTPUT statement closes the Output destination.
ods html close; ods output close;