O'Reilly logo

SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating HTML Output with Options

ODS HTML Statement

To create simple HTML output, you do not have to specify the ODS HTML statement. However, to create HTML output with options specified, you open the HTML destination using the ODS HTML statement.
General form, ODS HTML statement:
ODS HTML BODY=file-specification;
ODS HTML CLOSE;
where file-specification identifies the file that contains the HTML output. The specification can be
  • a quoted string which contains the HTML filename (use only the filename to write the file to your current working directory location, such as C:\Documents and Settings\username\My Documents\My SAS Files) Example: ODS HTML BODY=“myreport.html”;
  • a quoted string which contains the complete directory ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required