I am trying to use this information
http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/viewer.htm#a003254547.htm (Example 1: Uploading a Single File) to allow a user to upload a file. When I use the example code though, I get an error referring to the _WEBIN_ macro variables (that they are missing). I tried printing the variables that are created and there aren't any _WEBIN_ variable, even though other macro variables I created show up.
<html>
<form action="http://MYSASSERVER/SASStoredProcess/do" method="post" enctype="multipart /form-data">
<input type="hidden" NAME="_program" value="/Stored Processes/CLB_MIS/clbo_mis_attachment">
<table border="0" cellpadding="5">
<tr>
<th>Choose a file to upload:</th>
<td><input type="file" name="myfile"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="OK"><INPUT TYPE="CHECKBOX" NAME="_debug" VALUE="log"></td>
</tr>
</table>
</form>
</html>
I have been using this in the stored process to check for the _WEBIN macro variables.
proc sql;
select
scope
, name
, resolve(value) as value
from
dictionary.macros
where
scope = "GLOBAL"
and name like "/_WEBIN%" escape "/"
order by
name
;
quit;
Any suggestions on what to change?
Thanks.
It turns out that the space after "multipart" makes a difference. It seems several websites had a space which came over during a copy/paste.
enctype="multipart /form-data">
It turns out that the space after "multipart" makes a difference. It seems several websites had a space which came over during a copy/paste.
enctype="multipart /form-data">
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.