<?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: When stored process using prompts runs on SAS portal can a message be returned to user? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/When-stored-process-using-prompts-runs-on-SAS-portal-can-a/m-p/259349#M50171</link>
    <description>&lt;P&gt;I don't think it's possible to do this with the default prompting interface.&amp;nbsp; I haven't used information delivery portal much, but I assume it is very similar to Stored Process Web App.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With SPWA, the work around I have done is to let the stored process run, and then within the code in the stored process, verify that at least one macro variable has been populated with a value, and if that is false, write a simple html file to _webout delivering the error message "please check at least one value" or whatever.&amp;nbsp;&amp;nbsp;&amp;nbsp;I would think something like that could work from IDP.&amp;nbsp; With a little javascript, you could probably even pop up an alert box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that's not quite the same as having the prompt framework catch the input error and prevent the stored process from runnning.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2016 14:29:01 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2016-03-28T14:29:01Z</dc:date>
    <item>
      <title>When stored process using prompts runs on SAS portal can a message be returned to user?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-stored-process-using-prompts-runs-on-SAS-portal-can-a/m-p/259342#M50166</link>
      <description>&lt;P&gt;I have done some research online and can not find any thing specific that explains how to do this, maybe it is not possible for SAS to handle.&amp;nbsp; Here is the situation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I built a stored process that has 5 prompts available to the user.&amp;nbsp; The user wants to be able to pick any one or more of the promts.&amp;nbsp; Since they may or may not populate the prompts,&amp;nbsp; I did&amp;nbsp;NOT define&amp;nbsp;them as 'required' (in SMC).&amp;nbsp; I am checking the length on each of the prompts to determine if a value is present and building the 'where clause' using this method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The caviot..... the user wants to make it a requirement that at least ONE of the prompts is populated and it doesn't matter which one.&amp;nbsp; If the run the stored process and have not entered any values, they would like a message returned that says&amp;nbsp; "At minimum&amp;nbsp;one prompt value must be entered".&amp;nbsp; They would click 'ok' on this message box of just close it and be sitting at the same screen and be able to enter a value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone tell me if this is possible to do in a SAS stored process?&amp;nbsp; If so, can you explain the method I could use?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 13:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-stored-process-using-prompts-runs-on-SAS-portal-can-a/m-p/259342#M50166</guid>
      <dc:creator>ncsthbell</dc:creator>
      <dc:date>2016-03-28T13:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: When stored process using prompts runs on SAS portal can a message be returned to user?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-stored-process-using-prompts-runs-on-SAS-portal-can-a/m-p/259345#M50168</link>
      <description>&lt;P&gt;For the steps that are under your direct control, you can use a similar test to what you are using now:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%if %length(&amp;amp;prompt1 &amp;amp;prompt2 &amp;amp;prompt3 &amp;amp;prompt4 &amp;amp;prompt5) = 0 %then %do;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 14:06:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-stored-process-using-prompts-runs-on-SAS-portal-can-a/m-p/259345#M50168</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-03-28T14:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: When stored process using prompts runs on SAS portal can a message be returned to user?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-stored-process-using-prompts-runs-on-SAS-portal-can-a/m-p/259349#M50171</link>
      <description>&lt;P&gt;I don't think it's possible to do this with the default prompting interface.&amp;nbsp; I haven't used information delivery portal much, but I assume it is very similar to Stored Process Web App.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With SPWA, the work around I have done is to let the stored process run, and then within the code in the stored process, verify that at least one macro variable has been populated with a value, and if that is false, write a simple html file to _webout delivering the error message "please check at least one value" or whatever.&amp;nbsp;&amp;nbsp;&amp;nbsp;I would think something like that could work from IDP.&amp;nbsp; With a little javascript, you could probably even pop up an alert box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that's not quite the same as having the prompt framework catch the input error and prevent the stored process from runnning.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 14:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-stored-process-using-prompts-runs-on-SAS-portal-can-a/m-p/259349#M50171</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2016-03-28T14:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: When stored process using prompts runs on SAS portal can a message be returned to user?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-stored-process-using-prompts-runs-on-SAS-portal-can-a/m-p/259350#M50172</link>
      <description>&lt;P&gt;Astounding,&lt;/P&gt;
&lt;P&gt;Thank you for your reply....&amp;nbsp;After the "Then Do;"&amp;nbsp; is the method/code that I don't know how to handle &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 14:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-stored-process-using-prompts-runs-on-SAS-portal-can-a/m-p/259350#M50172</guid>
      <dc:creator>ncsthbell</dc:creator>
      <dc:date>2016-03-28T14:38:47Z</dc:date>
    </item>
  </channel>
</rss>

