SUPPORT / SAMPLES & SAS NOTES
 

Support

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

DetailsAboutRate It

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:

  1. 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.

  2. Submit the following statement:
    ods html newfile=proc; 
    

    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.

  3. 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.

  4. 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

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASMicrosoft® Windows® for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M09.4 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
64-bit Enabled AIX9.3 TS1M09.4 TS1M0
64-bit Enabled HP-UX9.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.3 TS1M09.4 TS1M0
HP-UX IPF9.3 TS1M09.4 TS1M0
Linux9.3 TS1M09.4 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
Solaris for x649.3 TS1M09.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.