Usage Note 43911: Clearing the Results window in SAS® 9.3 does not clear the ODS HTML file that is open by default in the SAS windowing environment
Starting in SAS 9.3, the ODS HTML destination is turned on by default when using the SAS windowing environment. This is part of several changes at start-up discussed in SAS Note 42874, "Default behavior for the SAS windowing environment on Microsoft Windows, UNIX, and Linux operating systems has changed beginning with SAS® 9.3."
As part of this change, the HTML file created by ODS has the NEWFILE=NONE option set by default. Therefore, all procedure and DATA step output is sent to a single HTML file. When clearing the Results window manually by clicking on a node in the Results window and selecting Delete, or by issuing the ODSRESULTS;CLEAR command, nodes are deleted from the Results window. However, the HTML file remains open and the output from subsequent procedure or DATA steps is appended to any previously created HTML output.
To circumvent the issue, do one of the following:
- Prepend the following statements to your code in order to close the currently open HTML destination and reopen it based on the registry settings in Tools ► Options ► Preferences ► Results:
ods html close;
ods preferences;
Note that the ODS PREFERENCES statement is preproduction syntax in SAS 9.3.
- Submit the following statement:
The NEWFILE=PROC option generates a new HTML file for output from each procedure. Additional valid values for the NEWFILE= option include BYGROUP, OUTPUT, and PAGE.
- From the SAS menu bar, select Tools ► Options ► Preferences. Click the Results tab and do the following:
Under HTML, clear the Create HTML option. Then use customized ODS HTML FILE= statements to generate your HTML output.
- Beginning with the second maintenance release for SAS 9.3 (TS1M2), you can now clear out all of the HTML output that is currently displayed in the SAS Results Viewer window by selecting Edit ► Clear All from the SAS menu bar in either the Results Viewer window or the Results window.
Operating System and Release Information
SAS System | Base SAS | Microsoft® Windows® for x64 | 9.3 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M0 | |
Microsoft Windows Server 2008 | 9.3 TS1M0 | |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M0 | 9.4 TS1M0 |
Microsoft Windows XP Professional | 9.3 TS1M0 | |
Windows 7 Enterprise 32 bit | 9.3 TS1M0 | |
Windows 7 Enterprise x64 | 9.3 TS1M0 | 9.4 TS1M0 |
Windows 7 Home Premium 32 bit | 9.3 TS1M0 | |
Windows 7 Home Premium x64 | 9.3 TS1M0 | |
Windows 7 Professional 32 bit | 9.3 TS1M0 | |
Windows 7 Professional x64 | 9.3 TS1M0 | 9.4 TS1M0 |
Windows 7 Ultimate 32 bit | 9.3 TS1M0 | |
Windows 7 Ultimate x64 | 9.3 TS1M0 | |
Windows Vista | 9.3 TS1M0 | |
Windows Vista for x64 | 9.3 TS1M0 | |
64-bit Enabled AIX | 9.3 TS1M0 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 9.3 TS1M0 | 9.4 TS1M0 |
64-bit Enabled Solaris | 9.3 TS1M0 | 9.4 TS1M0 |
HP-UX IPF | 9.3 TS1M0 | 9.4 TS1M0 |
Linux | 9.3 TS1M0 | 9.4 TS1M0 |
Linux for x64 | 9.3 TS1M0 | 9.4 TS1M0 |
Solaris for x64 | 9.3 TS1M0 | 9.4 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Date Modified: | 2012-10-03 14:39:44 |
Date Created: | 2011-08-04 11:38:03 |