This sample demonstrates how to display a SAS Stored Process in a SAS® Information Delivery Portal page by using a URL display portlet. The sample uses the application feature of the portal in order to enable the stored process to execute without additional authentication. The steps vary slightly between SAS 9.1.3 and SAS 9.2, so choose the appropriates set of steps below.
CAUTION: This example will allow a stored process to be executed when the Portal page is displayed. The results are not cached, and the stored process will be executed each time the Portal page is displayed or refreshed. If the stored process takes long to display, this could result in poor performance of the Portal page. Any stored process that you want to use in a Portal page should be designed so that it will execute quickly. Additionally, adding multiple URL display portlets to the same page will result in slower performance, as each stored process must be executed and returned to the Portal page.
In addition, the SAS BI Portlets release now provides a SAS Stored Process portlet that can be used to display stored process output in SAS 9.2.
http://server:port/SASStoredProcess
http://server:port/SASStoredProcess/do?_action=form,properties,execute,nobanner,newwindow&_program=%2FProducts%2FSAS+Intelligence+Platform%2FSamples%2FSample%3A+Shoe+Sales+by+Region
_program=%2FProducts%2FSAS+Intelligence+Platform%2FSamples%2FSample%3A+Shoe+Sales+by+Region
Copy this value to use in the URL that you will create. To create the URL, you will use either the STPRun or the STPRunParameters directive, depending on whether the stored process requires input parameters. For more information on the new directives, see SAS Note 37516
http://server:port/SASPortal/Director?_directive=STPRun&_program=%2FProducts%2FSAS+Intelligence+Platform%2FSamples%2FSample%3A+Shoe+Sales+by+Region
Note: The directive is case sensitive, so type it exactly as shown here.
http://server:port/SASPortal/Director?_directive=STPRunParameters&_program=%2FProducts%2FSAS+Intelligence+Platform%2FSamples%2FSample%3A+Shoe+Sales+by+Region
Note: The directive is case sensitive, so type it exactly as shown here.
http://server:port/SASStoredProcess/Welcome.htm
http://server:port/SASStoredProcess/do?_action=data&_program=SBIP%3A%2F%2FFoundation%2FSamples%2FStored+Processes%2FSample%3A+Shoe+Sales+by+Region%28StoredProcess%29
_action
to execute
. For example: http://server:port/SASStoredProcess/do?_action=execute&_program=SBIP%3A%2F%2FFoundation%2FSamples%2FStored+Processes%2FSample%3A+Shoe+Sales+by+Region%28StoredProcess%29
_action
to form,properties
. This value will either display a custom input form, if it exists, or it will display the default properties page. For the best display in a portlet, a custom input form should be used. The URL would look similar to this: http://server:port/SASStoredProcess/do?_action=form,properties&_program=SBIP%3A%2F%2FFoundation%2FSamples%2FStored+Processes%2FSample%3A+Shoe+Sales+by+Region%28StoredProcess%29
For a list of available documentation for SAS Information Delivery Portal, see http://support.sas.com/documentation/onlinedoc/portal/index.html.
For documentation for the SAS Stored Process Web Application, see
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
Type: | Sample |
Date Modified: | 2010-02-17 14:23:06 |
Date Created: | 2008-05-19 14:52:23 |
Product Family | Product | Host | Product Release | SAS Release | ||
Starting | Ending | Starting | Ending | |||
SAS System | SAS Information Delivery Portal | Microsoft® Windows® for x64 | 2.0 | 9.1 TS1M3 SP4 | ||
Microsoft Windows 2000 Advanced Server | 2.0 | 9.1 TS1M3 SP4 | ||||
Microsoft Windows 2000 Datacenter Server | 2.0 | 9.1 TS1M3 SP4 | ||||
Microsoft Windows 2000 Server | 2.0 | 9.1 TS1M3 SP4 | ||||
Microsoft Windows 2000 Professional | 2.0 | 9.1 TS1M3 SP4 | ||||
Microsoft Windows NT Workstation | 2.0 | 9.1 TS1M3 SP4 | ||||
Microsoft Windows Server 2003 Datacenter Edition | 2.0 | 9.1 TS1M3 SP4 | ||||
Microsoft Windows Server 2003 Enterprise Edition | 2.0 | 9.1 TS1M3 SP4 | ||||
Microsoft Windows Server 2003 Standard Edition | 2.0 | 9.1 TS1M3 SP4 | ||||
Microsoft Windows XP Professional | 2.0 | 9.1 TS1M3 SP4 | ||||
Windows Vista | 2.0 | 9.1 TS1M3 SP4 | ||||
64-bit Enabled AIX | 2.0 | 9.1 TS1M3 SP4 | ||||
64-bit Enabled Solaris | 2.0 | 9.1 TS1M3 SP4 | ||||
HP-UX IPF | 2.0 | 9.1 TS1M3 SP4 |