BookmarkSubscribeRSS Feed
Calcite | Level 5
A quick question, is there a way to automatically manipulate the execution options page so as to change the default setup from YES to NO, in order to displaying result in the same window rather than in a new window when running SAS Stored Processes? I appreciate it very much for the help!

Tan Yuanbin
Have a look at the support page:
Unfortunately the "Open in new window" option is one of three that can not be suppressed.
Rhodochrosite | Level 12
You can change this behavior, but it involves replacing one of the JavaScript files that we ship. See the comments within the code to set the features you desire. In your case, you will need to set the value of the variable SAS_ResultsNewWindow to false. Note that this change will affect all stored processes.

DISCLAIMER: This code has not been fully tested; use it at your own risk.

Below are the steps. Step 2 is specific to the Tomcat Application Server, and you will need to adjust the path if you are using a different Java Application Server. The rest of the steps are the same, regardless of the application server.

  1. Stop your Java Application Server.

  2. Navigate to


  3. Rename the file




  4. Create a new file named


    and open it using a text editor.

  5. Copy and paste the code below into the file


    and save the file. In the code below,


    indicates new code and


    indicates changed code, with the changes

    highlighted in yellow.

  6. Set the values of the variables

    SAS_HideExecutionOptions, SAS_HTTPMethod,



    to suit your needs.

  7. Restart your Java Application Server and execute a stored process to confirm the desired behavior.

For important information regarding execution options in SAS 9.2, see:

Usage Note 35063: Stored process execution options are no longer included in SAS® 9.2 by default

Vince DelGobbo



// Set SAS_HideExecutionOptions to true to hide the Execution Options, or false to show them

var SAS_HideExecutionOptions=false;

// Set SAS_HTTPMethod to GET to change the HTTP method from default value of POST to GET

var SAS_HTTPMethod="post";

// Set SAS_ResultsNewWindow to false to change force SAS output to be opened in the same window

var SAS_ResultsNewWindow=true;

// Highlight selected menu item and display the corresponding content
function showContent(menuItemName, menuAnchorName, contentElementName) {
/* Copyright(c) 2003-2004 by SAS Institute Inc., Cary, NC USA All rights reserved. */

var anchors, contentElement, contentWindow, i, size, menuElement;

// selectedLeftMenuItem, visibleContentElementName and menuAnchorElement are global

if (SAS_HideExecutionOptions == true) {

anchors = document.getElementsByTagName("a");
size = anchors.length;

for (i = 0; i < size; i++) {
href = anchors[i].href;
if (href.indexOf("AdvancedServerOptions") >= 0) {

if (visibleContentElementName == "AdvancedServerOptions")

// Set the HTTP method on the Execution Options panel if GET is requested

if (SAS_HTTPMethod.toLowerCase() == "get") {
document._advancedOptions.httpmethod[0].checked = true;
document._advancedOptions.httpmethod[1].checked = false;

// Set the "Display results in new window" option on the Execution Options panel to "No" if requested

if (SAS_ResultsNewWindow == false) {
document._advancedOptions.resNewWindow[0].checked = false;
document._advancedOptions.resNewWindow[1].checked = true;

menuAnchorElement = document.getElementById(menuAnchorName);

// Hide the currently visible element
contentElement = document.getElementById(visibleContentElementName); = "none";

// Show the desired element
contentElement = document.getElementById(contentElementName); = "";

menuElement = document.getElementById(menuItemName);

// Deselect previously selected menu item, if any
if (selectedLeftMenuItem != null)

// Select the clicked on menu item
selectedLeftMenuItem = menuElement;

visibleContentElementName = contentElementName;

window.setTimeout("menuAnchorElement.focus();", 200);

Calcite | Level 5
Cool! Tested, no problem so far. Thank you all very much!



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 3 in conversation