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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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