BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
BenB
Calcite | Level 5

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.

1 ACCEPTED SOLUTION

Accepted Solutions
BenB
Calcite | Level 5

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"> 

View solution in original post

1 REPLY 1
BenB
Calcite | Level 5

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"> 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1292 views
  • 0 likes
  • 1 in conversation