Usage Note 20154: Tip for redirecting a SAS® Stored Process request to another SAS® Stored Process
When you run a SAS Stored Process using the SAS® Stored Process Server,
the SAS Stored Process cannot directly execute a second SAS Stored Process unless you use the STP procedure.
As an alternative, the SAS Stored Process stp_test1 can return HTML output
that causes another SAS Stored Process, stp_test2, to be executed
immediately. For example, when a user executes stp_test1, that stored process redirects the request to another stp_test2.
In the following example, the SAS Stored Process redirects
the request to the "Sample: Hello World" SAS Stored Process. When you
run this SAS Stored Process code, you need to substitute the host name of your application web server in place of your.server.com:8080. The URL= value must be the URL of the SAS Stored Process that you want to execute.
This approach works when you execute a SAS Stored Processes using either
the SAS Stored Process web application or the SAS® Information Delivery Portal.
/*********************************************************/
/* */
/* Stored Process Name: stp_test1 */
/* */
/* This example redirects the request to another stored */
/* process (called "Sample: Hello World"). */
/* */
/*********************************************************/
data _null_;
file _webout;
put '<HTML><HEAD>';
put '<TITLE>META HTTP-EQUIV Refresh CONTENT</TITLE>';
put '<META HTTP-EQUIV="Refresh" NAME="NULL" CONTENT="0; URL=http://your.server.com:8080/SASStoredProcess/do?_PROGRAM=/Products/SAS+Intelligence+Platform/Samples/Sample:+Hello+World&_action=properties,form,execute">';
put '</HEAD>';
put '<BODY>';
put '<H1>Redirect the request to another stored process.</H1>';
put '</BODY>';
put '</HTML>';
run;
Operating System and Release Information
SAS System | SAS Integration Technologies | Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Solaris for x64 | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |
z/OS | 9.1 TS1M3 SP4 | |
HP-UX IPF | 9.1 TS1M3 SP4 | |
Linux on Itanium | 9.1 TS1M3 SP4 | |
Linux | 9.1 TS1M3 SP4 | |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |
Tru64 UNIX | 9.1 TS1M3 SP4 | |
OpenVMS Alpha | 9.1 TS1M3 SP4 | |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | |
*
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.
Type: | Usage Note |
Priority: | |
Topic: | System Administration ==> Servers ==> Integration Technologies
|
Date Modified: | 2007-05-07 09:41:08 |
Date Created: | 2007-05-04 18:19:13 |