Managing SAS Output under Windows |
Introduction to Routing Procedure Output to a Web Browser |
The Output Delivery System (ODS) can create your procedure output in HTML to be viewed in any Web browser. The ODS system also has the ability to create RTF procedure output. If you have Microsoft Internet Explorer 4.0 (IE) or later installed, you can view HTML and RTF procedure output within the SAS main window by using the Results Viewer. Viewing RTF procedure output also requires an RTF viewer, such as Microsoft Word.
If you are not using IE, HTML procedure output is displayed in the preferred browser that is specified in the Preferences dialog box Web sheet. Having IE installed enables you to view the HTML output from within the main SAS window.
For more information about using the Output Delivery System, see SAS Output Delivery System: User's Guide.
Configuring Preferences for HTML Output |
To create and view HTML output, you configure the Results and Web tabs of the Preferences dialog box.
To open the Preferences dialog box, select Tools Options Preferences.
To configure the Results page of the Preferences dialog box:
Select where to save your HTML file. To save HTML files only while the current SAS session is active, select the Use WORK folder check box. Saving HTML files to a temporary folder is useful when you are testing a procedure and creating a multitude of HTML files. For example, when you exit SAS, all temporary files are deleted.
To save HTML files to a folder other than the Work folder, ensure that the Use WORK folder check box is not selected. Then type a path in the Folder text box or click on Browse to search for a folder.
Click in the Style box and highlight a style. The style defines colors and fonts to display your output. You define styles by using the TEMPLATE Procedure in SAS Output Delivery System: User's Guide.
Select View results as they are generated to view the results immediately.
Under View results using, select Internal browser to view HTML output in the Results Viewer or select Preferred browser to view the HTML output in the Web browser specified on the Web tab. If you do not have Microsoft Internet Explorer installed, you must select Preferred web browser.
To configure the Web page of the Preferences dialog box:
Choose which browser you want to use:
Select the Use default browser radio button to view the HTML output in the default browser that is configured in the Windows Registry. For information about how to view the Windows Registry, see your Windows documentation.
Select the Other browser radio button to view HTML from a Web browser other than the default browser. Then type the browser's path and filename, or click Browse to find the browser filename.
Using the Results Viewer Window |
Select one of the following topics for more information:
When you select Internal browser from the Results tab of the Preferences dialog box, SAS uses the Results Viewer window to display HTML output that is created by the Output Delivery System. You can open any HTML output that is listed in the Results window or any HTML file that is located on your system.
The following toolbar buttons are available in the Results Viewer for HTML output:
Select the left arrow button to cycle back through files that you opened in the Results Viewer.
Select the right arrow button to move forward through files that you opened in the Results Viewer.
Select the double-A button to change the font size. Five font sizes are available.
You can view HTML procedure output by opening the file from the Results window. If you want to see your procedure output as it is generated, set an option in the Results tab of the Preferences dialog box:
To open additional Results Viewer windows from the Results window:
To open an HTML file that is on your system:
From the Results window, click with the right mouse button on the output data set name.
Select the Refresh content toolbar button to view the updated HTML file in the Results Viewer.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.