Sample 37050: Creating a custom HTML input form for a SAS® Stored Process
This example SAS® Stored Process creates a custom HTML input form that is used to execute another SAS Stored Process. This provides an alternative to the approach of creating a custom JSP file that is stored on your Web server for the custom HTML input form.
Follow these instructions to create your custom HTML form:
- Insert your HMTL code after the cards4 statement in place of the existing HTML code.
- Modify the %let stpname statement to specify the name of the SAS Stored Process that is to be executed in the HTML form that is created.
- The DATA step reads the input lines and resolves any macro variables that are specified (such as &stpname and &_URL).
See SAS Note 19475, "Creating dynamic parameter values for a SAS Stored Process," for more information about an HTML input form.
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.
This example stored process creates a custom HTML page that is used
to execute another stored process. This provides an alternative
to the approach of creating a custom JSP file that is stored on
your Web server.
/* This stored process creates a custom HTML FORM that is */
/* used to execute another stored process. */
/* */
/* Insert your HTML statements after the CARDS4 statement. */
/* Modify the "%let stpname" statement to specify the name */
/* of the next stored process that is to be executed. */
/* Any macro variables in the INPUT cards will be resolved */
/* if the values are known. */
/* stpname is the name of the next stored process to be executed */
%let stpname=/Samples/Stored Processes/Sample: Frequency Analysis of Municipalities;
data _null_;
format infile $char256.;
input;
infile = resolve(_infile_);
file _webout;
put infile;
cards4;
<HTML>
<BODY>
<H1>Sample: Frequency Analysis of Municipalities</H1>
This sample illustrates the data analysis capabilities of stored
processes.
<FORM ACTION="&_URL">
<INPUT TYPE="HIDDEN" NAME="_program" VALUE="&stpname">
<HR>
Choose a table to display:<BR>
<INPUT TYPE=RADIO NAME="table" value="city*dept" CHECKED>City by Dept<BR>
<INPUT TYPE=RADIO NAME="table" value="city*week">City by Week<BR>
<INPUT TYPE=RADIO NAME="table" value="dept*week">Dept by Week<BR>
<HR>
<INPUT TYPE="SUBMIT" VALUE="Run Procedure">
<INPUT TYPE="CHECKBOX" NAME="_debug" VALUE="log">Show SAS Log
</FORM>
</BODY>
</HTML>
;;;;
run;
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.
This example SAS® Stored Process creates a custom HTML page that is used to execute another SAS Stored Process. This provides an alternative to the approach of creating a custom JSP file that is stored on your Web server.
Date Modified: | 2021-04-27 09:40:53 |
Date Created: | 2009-09-01 11:30:39 |
Operating System and Release Information
SAS System | SAS Integration Technologies | z/OS | 9.1 TS1M3 SP4 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 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 Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2008 | 9.1 TS1M3 SP4 | |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |
HP-UX IPF | 9.1 TS1M3 SP4 | |
Linux | 9.1 TS1M3 SP4 | |
Linux on Itanium | 9.1 TS1M3 SP4 | |
OpenVMS Alpha | 9.1 TS1M3 SP4 | |
Solaris for x64 | 9.1 TS1M3 SP4 | |
Tru64 UNIX | 9.1 TS1M3 SP4 | |