Producing HTML Output |
The ODS HTML Statement |
Creating HTML Output from Multiple Procedures
You can also use the ODS HTML statement to direct the results from multiple procedures to the same HTML file. The program below generates HTML output for a PROC PRINT step and a PROC TABULATE step. The results for both procedures are written to the file C:\Records\data.html in the Windows environment. A link for each output object (one for each procedure) appears in the Results window. |
ods html body='c:\records\data.html'; proc print data=clinic.admit label; var id sex age height weight actlevel; label actlevel='Activity Level'; run; proc tabulate data=clinic.stress2; var resthr maxhr rechr; table min mean, resthr maxhr rechr; run; ods html close; |
The following is a representation of the HTML file containing the results from the program above. Notice that the results from each procedure are appended. |
|
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.