<?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: How to re-display a prompt in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171260#M13111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't know much about EG process flows.&amp;nbsp; &lt;/P&gt;&lt;P&gt;But I'm a fan of %AnyObs() for checking whether there are any records in a dataset that meet some user-specified criterion passed in via prompt values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a modified version of Jack Hamilton's macro:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi26/p095-26.pdf" title="http://www2.sas.com/proceedings/sugi26/p095-26.pdf"&gt;http://www2.sas.com/proceedings/sugi26/p095-26.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In web reports, I often collect user prompt values, then check if %AnyObs(MyData) is true.&amp;nbsp; If it's false, I return a result: "You passed these prompt values, but no records were found.&amp;nbsp; Please try again"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roughly based on Don Henderson's approach:&lt;/P&gt;&lt;P&gt;&lt;A href="http://hcsbi.blogspot.com/2011/04/this-page-intentionally-left-blank.html"&gt;http://hcsbi.blogspot.com/2011/04/this-page-intentionally-left-blank.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2014 23:37:31 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2014-05-28T23:37:31Z</dc:date>
    <item>
      <title>How to re-display a prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171254#M13105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use multiple prompts in a flow in SAS/Enterprsie Guide, where the user has to enter for instance a client number and a location. With the info provided by the user, I want to check whether this combination exists in a table. If the combination exists, I want to continue my processing otherwise the user should be prompted to provide other values for the prompt. Can one build this in Enterprise Guide?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henri &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 12:57:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171254#M13105</guid>
      <dc:creator>HenriTheuwissen</dc:creator>
      <dc:date>2014-05-23T12:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to re-display a prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171255#M13106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only Eguide (prompting in Eg-project) or using prompts metadata-bases with use of eg Information maps or stored processes.&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/stpug/62758/HTML/default/viewer.htm#n04zozyzrfsilkn10wjvid5tfsat.htm" title="http://support.sas.com/documentation/cdl/en/stpug/62758/HTML/default/viewer.htm#n04zozyzrfsilkn10wjvid5tfsat.htm"&gt;SAS(R) 9.3 Stored Processes: Developer's Guide&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Before I forget to mention the prompts related to dataset input are not very reliable in selecting the correct app-server.&lt;BR /&gt;The related libname for that must be unique in your environment not existing in multiple app-servers. &lt;BR /&gt;If that does however it will open up a randomly chosen one. not the one you have associated the process to be run on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 14:48:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171255#M13106</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-23T14:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to re-display a prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171256#M13107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option would be to use the tables to give him a pick list for each value, limiting him to only the correct ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 May 2014 12:23:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171256#M13107</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2014-05-24T12:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to re-display a prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171257#M13108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaap and Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is more complex than just prompting for parameters.&lt;/P&gt;&lt;P&gt;I am using Enterprise Guide with prompts. Tom, I cannot display a pick list with the values, since I have to look-up in a table with thousands of records. So, the problem is: after the user entered values, some code is executed to verify the entered data (look-up in a SAS table) and when the info is correct, some more steps should be executed; otherwise I need to prompt the user for new, correct values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 16:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171257#M13108</guid>
      <dc:creator>HenriTheuwissen</dc:creator>
      <dc:date>2014-05-27T16:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to re-display a prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171258#M13109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henri,&lt;BR /&gt;The prompt is a preprocess of the program it is just setting some sas-macro-variables.&lt;BR /&gt;When you are needing to do validation by really processing with sas-code the flow is changed. Think in managing the flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you already have a flow to be managed every program could/should start with a check of the point how far it is in the flow and whether this program is allowed to run.&lt;BR /&gt;When it is not allowed to run it should set an error (sysrc &amp;gt;1) in SAS. The error recognition of SAS will work on that and not allowing automatic proceeding in the flow.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Back to your question:&amp;nbsp; &lt;BR /&gt;you can do the same with that, let the prompt come, program run and when your checks wrong give a message en set the errorcode (sysrc).&lt;BR /&gt;Not very nice for the last wish is missing: starting a program within Eguide as result of some SAS code. The user should interact and restart the program manually.&lt;/P&gt;&lt;P&gt;Eguide is a client listening/serving possible multiple server processes running. At this a see some difficulty in your wish. Suppose many processes would be running simultenously and all were needing a prompt. How should this be designed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could be an enhancement request: &lt;BR /&gt;-&amp;gt; not only starting sas code manual, make it possible to start programs in a EGP project by a SAS code call.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 05:58:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171258#M13109</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-28T05:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to re-display a prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171259#M13110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's another potential approach: a custom task that can prompt the user for a value, and pause the project while waiting for an answer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://blogs.sas.com/content/sasdummy/2013/10/08/process-interruptus-a-custom-task-to-pause-your-process-flow/" title="http://blogs.sas.com/content/sasdummy/2013/10/08/process-interruptus-a-custom-task-to-pause-your-process-flow/"&gt; Process Interruptus: a custom task to pause your process flow - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could combine this task with Conditions in EG (see EG online help about Conditions) to prompt for a value, perform a check, and then follow one branch or another within your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 12:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171259#M13110</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-05-28T12:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to re-display a prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171260#M13111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't know much about EG process flows.&amp;nbsp; &lt;/P&gt;&lt;P&gt;But I'm a fan of %AnyObs() for checking whether there are any records in a dataset that meet some user-specified criterion passed in via prompt values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a modified version of Jack Hamilton's macro:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi26/p095-26.pdf" title="http://www2.sas.com/proceedings/sugi26/p095-26.pdf"&gt;http://www2.sas.com/proceedings/sugi26/p095-26.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In web reports, I often collect user prompt values, then check if %AnyObs(MyData) is true.&amp;nbsp; If it's false, I return a result: "You passed these prompt values, but no records were found.&amp;nbsp; Please try again"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roughly based on Don Henderson's approach:&lt;/P&gt;&lt;P&gt;&lt;A href="http://hcsbi.blogspot.com/2011/04/this-page-intentionally-left-blank.html"&gt;http://hcsbi.blogspot.com/2011/04/this-page-intentionally-left-blank.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 23:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171260#M13111</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-05-28T23:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to re-display a prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171261#M13112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your input on this topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;you gave me the real answer to my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-re-display-a-prompt/m-p/171261#M13112</guid>
      <dc:creator>HenriTheuwissen</dc:creator>
      <dc:date>2014-05-30T10:24:14Z</dc:date>
    </item>
  </channel>
</rss>

