I'm confused by what you want to do. When you do this:
ods html file='c:\temp\wombat.html';
ods html close;
then you ARE creating an HTML file and yes, you could read that file with an INPUT statement.
What I think you want, If I understand you correctly, you want to save the whole ASCII TEXT HTML file as the value of a single variable in a database???? I guess what confuses me is the "series of HTML statements" part. Would you mean everything that's in the ODS HTML sandwich above??? OR, would you mean the RESULTS of running the statements above?? In the first case, that sounds like a source code management system and in the second case, that sounds like a document management system.
In either case, I'm not sure that saving the HTML results into a single data base variable would work, because databases frequently have limitations on the size that a text field can hold and inevitably, you'll bump into that limit if you're trying to save the entire HTML results. That might not be the case if you saved just the source code into a data base or source management system. At any rate, your best bet for help may be to contact SAS Tech Support, as they can zero in on exactly what you want to do and help you figure out a way to do it, if it's possible/feasible/do-able.