Hi:
Have you tried this:
[pre]
ods html file='c:\temp\somefile.html' style=sasweb;
proc print data=sashelp.class;
run;
ods html close;
[/pre]
This would take the data in SASHELP.CLASS and write out each row to an HTML file entitled SOMEFILE.HTML stored in the c:\temp directory.
Before ODS, people sometimes used code like this to generate their own HTML page:
[pre]
data _null_;
set sashelp.class end=eof;
file 'c:\temp\myowncode.html';
** write some html at the top of the file;
if _n_ = 1 then do;
put '';
put '
wombat';
end;
** write something out for every row;
put '' Name ' | ' Age ' |
';
** write something out at the end of the data;
if eof then do;
put '
';
end;
run;
[/pre]
How you would approach a solution to your question depends on what you want to do. If you have a basically tabular HTML report and you have a customized CSS file that has all your font and color preferences, then you could invoke ODS this way and use your own CSS file:
[pre]
ods html path='c:\temp' (url=none)
file='usemystye.html'
stylesheet=(url='http://myserver.com/styledir/style.css');
.... rest of code...
ods html close;
[/pre]
OR you could generate a SAS style template to contain the colors and fonts preferences that you have.
Another kind of template you could use with ODS is a TAGSET template that would allow you to change the kind of MARKUP language tags that were written out around your data.
But, I'm not sure that you're talking about an ODS HTML template in the context of what you can do with ODS. I wonder whether you are talking about the kind of CGI templates that you can make and then populate with Perl or PHP or ASP or other scripting languages. (as described here:
http://html-template.sourceforge.net/article.html )
In either case, your best bet may be to contact SAS Technical Support so they can determine exactly what kind of existing program you have and what kind of conversion program is best for your solution.
Good luck,
cynthia