Usage Note 13128: Prevent the Results Viewer from opening automatically when generating output from ODS
Preventing the Results Viewer from opening automatically is one of the many functions that the ODS Preferences control. To prevent your CSV, HTML, RTF, PDF, or XLS output from displaying automatically in the Results Viewer, you can change the Preferences by choosing the following:
Tools ► Options ► Preferences ► Results
Under Results Options, clear the "View Results as they are generated" option.
To programatically make this change, use PROC REGISTRY. The sample code below saves the keys settings to a file with the DATA step then uses PROC REGISTRY to import the keys settings. Subsequent ODS destination statements generate output but it will not be displayed automatically in the Results Viewer.
filename source 'temp.sasxreg';
data _null_;
file source;
put '[ODS\GUI\RESULTS]';
put ' "Auto Navigate" = "Off"';
run;
/*---------------------------*/
/* Change the SAS registry */
/*---------------------------*/
proc registry import=source;
run;
/*-------------------------------------------------*/
/* Notify an existing destination that */
/* it needs to reprocess the preferences. */
/*-------------------------------------------------*/
ods preferences;
The following statement also prevents the Results Viewer from displaying output immediately after it is created. However, it prevents any procedure or DATA step nodes from being created in the Results Window:
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows XP Professional | 9.1 TS1M0 | |
Microsoft Windows NT Workstation | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | |
Microsoft Windows 2000 Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Professional | 9.1 TS1M0 | |
64-bit Enabled Solaris | 9.1 TS1M0 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |
z/OS | 9.1 TS1M0 | |
64-bit Enabled AIX | 9.1 TS1M0 | |
OpenVMS Alpha | 9.1 TS1M0 | |
64-bit Enabled HP-UX | 9.1 TS1M0 | |
HP-UX IPF | 9.1 TS1M0 | |
Linux | 9.1 TS1M0 | |
Tru64 UNIX | 9.1 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.
This note illustrates how to prevent the Results Viewer from opening automatically when generating output from ODS.
Type: | Usage Note |
Priority: | |
Topic: | SAS Reference ==> ODS (Output Delivery System)
|
Date Modified: | 2012-03-16 10:48:12 |
Date Created: | 2004-08-19 15:33:41 |