<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sample 60267: Using an HTML form to provide values for prompted SAS® Stored Processes in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Sample-60267-Using-an-HTML-form-to-provide-values-for-prompted/m-p/557227#M5890</link>
    <description>&lt;P&gt;Do you know where is the option to perform this operation? in the "summary" tab when I select "show full sas code" option, there is no way to edit the prompt.&lt;/P&gt;&lt;P&gt;Edit: I found the option it is in the "SAS Code" tab, then press the button "Include code for" and disable the "Stored process macros".&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2019 18:48:22 GMT</pubDate>
    <dc:creator>wsdabreu</dc:creator>
    <dc:date>2019-05-08T18:48:22Z</dc:date>
    <item>
      <title>Sample 60267: Using an HTML form to provide values for prompted SAS® Stored Processes</title>
      <link>https://communities.sas.com/t5/Developers/Sample-60267-Using-an-HTML-form-to-provide-values-for-prompted/m-p/557210#M5888</link>
      <description>&lt;P&gt;I'm trying to execute the following sample in VA, but i'm receiving the error: ERROR: File is in use, _WEBOUT . I've tried SAS suggestions but it didn't work, someone has another tip?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* **************************************************************************************
*  Description:  This stored process creates an html form that then calls a Target stored process
*
*  Inputs:   Two parameters are created from the sashelp.class table: Make and Type
*
*  Outputs:  The submist button call the stored process defined in _program
*
*  NOTE:  You must change the path of the target stored process if the target stored 
*         process is located in a different location in the SAS Management Console
*
**************************************************************************************** */


data _null_;
file _webout;
put '&amp;lt;HEAD&amp;gt;&amp;lt;TITLE&amp;gt;HTML Form Example Using Streaming Output&amp;lt;/TITLE&amp;gt;&amp;lt;/HEAD&amp;gt;';
put '&amp;lt;FONT face=Arial size=2 COLOR="#000000"&amp;gt;&amp;amp;nbsp;&amp;lt;B&amp;gt;HTML Form Example Using Streaming Output&amp;lt;/B&amp;gt;&amp;lt;/FONT&amp;gt;';
put '&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;';
put '&amp;lt;FORM action="/SASStoredProcess/do"&amp;gt;';
put '&amp;lt;INPUT name="_program" type=hidden value="/Shared Data/Stored Processes/Target(StoredProcess)"&amp;gt;';
put '&amp;lt;INPUT name=_debug type=hidden value=0&amp;gt;';
run;

/* ************************************************* */
/* Get a list of car MAKES to populate the list with */
/* ************************************************* */
data _null_;
file _webout;
put '&amp;lt;font face=verdana size=-2&amp;gt;&amp;amp;nbsp;Select Car Make:&amp;lt;/FONT&amp;gt;';
put '&amp;lt;SELECT NAME=Make SIZE=1 style="font:10pt arial"&amp;gt;';
run;

/* create a unique list of car makes */
proc sort data = sashelp.cars out=work.cars (keep=make) nodupkey;
by make;
run;


data _null_; 
file _webout;
length str $200;
set work.cars;
if _n_=1 then str='&amp;lt;OPTION selected value='||strip(make)||'&amp;gt;'||strip(make)||'&amp;lt;/OPTION&amp;gt;';
else str='&amp;lt;OPTION value='||strip(make)||'&amp;gt;'||strip(make)||'&amp;lt;/OPTION&amp;gt;';
put str;
run;


/* ************************************************* */
/* Get a list of car TYPES to populate the list with */
/* ************************************************* */
data _null_;
file _webout;
put '&amp;lt;/Select&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;';
put '&amp;lt;font face=verdana size=-2&amp;gt;&amp;amp;nbsp;Select Car Type:&amp;lt;/FONT&amp;gt;';
put '&amp;lt;SELECT NAME=type SIZE=1 style="font:10pt arial"&amp;gt;';
run;

/* create a unique list of car makes */
proc sort data = sashelp.cars out=work.cars (keep=type) nodupkey;
by type;
run;


data _null_; 
file _webout;
length str $200;
set work.cars;
if _n_=1 then str='&amp;lt;OPTION selected value='||strip(type)||'&amp;gt;'||strip(type)||'&amp;lt;/OPTION&amp;gt;';
else str='&amp;lt;OPTION value='||strip(type)||'&amp;gt;'||strip(type)||'&amp;lt;/OPTION&amp;gt;';
put str;
run;

data _null_;
file _webout;
put '&amp;lt;/select&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;';
 put '&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;INPUT name=B1 type=submit value=Submit&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;';
put '&amp;lt;INPUT name=B2 type=reset value=Reset&amp;gt;';

put '&amp;lt;/FORM&amp;gt;';
put '&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 May 2019 17:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sample-60267-Using-an-HTML-form-to-provide-values-for-prompted/m-p/557210#M5888</guid>
      <dc:creator>wsdabreu</dc:creator>
      <dc:date>2019-05-08T17:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sample 60267: Using an HTML form to provide values for prompted SAS® Stored Processes</title>
      <link>https://communities.sas.com/t5/Developers/Sample-60267-Using-an-HTML-form-to-provide-values-for-prompted/m-p/557218#M5889</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;You need to disable the automatic macros "%STPBEGIN" and "%STPEND" when you use file _webout.&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 18:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sample-60267-Using-an-HTML-form-to-provide-values-for-prompted/m-p/557218#M5889</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-05-08T18:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sample 60267: Using an HTML form to provide values for prompted SAS® Stored Processes</title>
      <link>https://communities.sas.com/t5/Developers/Sample-60267-Using-an-HTML-form-to-provide-values-for-prompted/m-p/557227#M5890</link>
      <description>&lt;P&gt;Do you know where is the option to perform this operation? in the "summary" tab when I select "show full sas code" option, there is no way to edit the prompt.&lt;/P&gt;&lt;P&gt;Edit: I found the option it is in the "SAS Code" tab, then press the button "Include code for" and disable the "Stored process macros".&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 18:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sample-60267-Using-an-HTML-form-to-provide-values-for-prompted/m-p/557227#M5890</guid>
      <dc:creator>wsdabreu</dc:creator>
      <dc:date>2019-05-08T18:48:22Z</dc:date>
    </item>
  </channel>
</rss>

