Chapter Contents |
Previous |
Next |
Using the Output Delivery System |
The following statements create the data set scores, which contains the golf scores for boys and girls in a physical education class. The TTEST procedure is then invoked to compare the scores.
The ODS HTML statement specifies the name of the file to contain the HTML output.
data scores; input Gender $ Score @@; datalines; f 75 f 76 f 80 f 77 f 80 f 77 f 73 m 82 m 80 m 85 m 85 m 78 m 87 m 82 ; run; ods html body='ttest.htm'; title 'Comparing Group Means'; proc ttest ; class Gender; var Score; run; ods html close;
By default, the SAS listing receives all output generated during your SAS run. In this example, the ODS HTML statement opens the HTML destination, and both destinations receive the generated output. Output 15.1.1 displays the results as they are rendered in the SAS listing.
Note that you must specify the following statement before you can view your output in a browser.
ods html close;
If you do not close the HTML destination, your HTML file may contain no output, or you may experience other unexpected results.
Output 15.1.2 displays the file 'ttest.htm', which is specified in the preceding ODS HTML statement.
Output 15.1.1: Results for PROC TTEST: SAS Listing Procedure Output
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.