Usage Note 64997: A SAS® Stored Process Web Application file upload request is not executed unless you sign in before submitting the request
You must sign in to the SAS Stored Process Web Application before you submit a request to upload a file. If you attempt to upload a file before you sign in, the Welcome page is displayed and the request is not executed.
You can work around this problem by creating an additional stored process that generates HTML code that enables you to submit a request to upload a file. When you submit a request to run the first stored process, you are then prompted to sign in. This stored process generates HTML code that is returned to the web browser. The HTML code then enables you to select a file to upload and submit a second stored process request.
For an example, see the code on the Full Code tab.
Operating System and Release Information
| SAS System | SAS Integration Technologies | Microsoft Windows Server 2012 Datacenter | 9.4 TS1M3 | |
| Microsoft Windows Server 2008 for x64 | 9.4 TS1M3 | |
| Microsoft Windows Server 2008 R2 | 9.4 TS1M3 | |
| Microsoft Windows Server 2008 | 9.4 TS1M3 | |
| Microsoft Windows 10 | 9.4 TS1M3 | |
| Microsoft Windows 8.1 Pro x64 | 9.4 TS1M3 | |
| Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M3 | |
| Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M3 | |
| Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M3 | |
| Microsoft Windows 8 Pro x64 | 9.4 TS1M3 | |
| Microsoft Windows 8 Pro 32-bit | 9.4 TS1M3 | |
| Microsoft Windows 8 Enterprise x64 | 9.4 TS1M3 | |
| Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M3 | |
| Microsoft® Windows® for x64 | 9.4 TS1M3 | |
| Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M3 | |
| Microsoft Windows Server 2012 R2 Std | 9.4 TS1M3 | |
| Microsoft Windows Server 2012 Std | 9.4 TS1M3 | |
| Windows 7 Enterprise 32 bit | 9.4 TS1M3 | |
| Windows 7 Enterprise x64 | 9.4 TS1M3 | |
| Windows 7 Home Premium 32 bit | 9.4 TS1M3 | |
| Windows 7 Home Premium x64 | 9.4 TS1M3 | |
| Windows 7 Professional 32 bit | 9.4 TS1M3 | |
| Windows 7 Professional x64 | 9.4 TS1M3 | |
| Windows 7 Ultimate 32 bit | 9.4 TS1M3 | |
| Windows 7 Ultimate x64 | 9.4 TS1M3 | |
| 64-bit Enabled AIX | 9.4 TS1M3 | |
| 64-bit Enabled Solaris | 9.4 TS1M3 | |
| HP-UX IPF | 9.4 TS1M3 | |
| Linux for x64 | 9.4 TS1M3 | |
| Solaris for x64 | 9.4 TS1M3 | |
*
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.
Create a new stored process that executes this code. When you submit a request to run this stored process, you are then prompted to sign in. This stored process generates HTML code that is returned to the web browser. This HTML code enables you to select a file to upload and submit a second stored process request. You must modify the HTML code for your application. For the FORM tag, modify "
your.server.com" to specify the address for your web server. Also, modify the "
_program=" value to specify the name of the second stored process that you want to run.
/* This stored process generates the HTML that enables you to upload a file */
data _null_;
format infile $char256.;
input;
infile = _infile_;
file _webout;
put infile;
cards4;
<html>
<body>
<h1>Upload File to Stored Process Server</h1>
<form action="http://your.server.com/SASStoredProcess/do" method="post" enctype="multipart/form-data">
<input type="hidden" name="_program" value="/Examples/Upload_File_Test">
<table>
<tr>
<th>Choose a file to upload:</th>
<td><input type="file" name="myfile"></td>
</tr>
<tr>
<td><INPUT TYPE="CHECKBOX" NAME="_DEBUG" VALUE="trace,time,log">Show SAS Log and Trace</td>
</tr>
<tr>
<td><input type="submit" value="OK"></td>
</tr>
</table>
</form>
</body>
</html>
;;;;
| Date Modified: | 2019-10-25 10:36:43 |
| Date Created: | 2019-10-23 10:53:56 |