<?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 Two questions involving prompts in Enterprise Guide in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Two-questions-involving-prompts-in-Enterprise-Guide/m-p/78854#M7752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I have looked through quite a few of the previous posted discussions on prompts and haven't found any answers to two questions I have.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;1. &lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Here is the scenario. In a project built using SAS EG 5.1, I take an original data set and use a Query Builder to filter on certain fields (columns) and do various other things. In that Query Builder, I set up some prompts for the aforementioned filters. Say, for example, that there is a field called 'Numbers' containing integers 1 through 10 and the prompt is named "Selected_Numbers". I want to use the value contained in the prompt "Selected_Numbers" later in the project in a SAS Program. I have selected the "Use prompt value throughout project" box and the prompt functions correctly in the Query Builder. What do I need to do to be able to access the value stored in "Selected_Numbers"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;2. I have a program (not the one mentioned in #1 but also in EG 5.1) for which a prompt is necessary. I have added the prompt by right clicking on the program, going to properties and adding the prompt under the "Prompts" section found in the left pane. What do I need to do to access this prompts value in the program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I have been using EG for about a week and a half now and this is my first post under SAS' discussion board, so if I have posted this in the wrong place or have said/done something incorrect, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thank you in advance for your insights,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;audioa84&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Mar 2013 21:17:00 GMT</pubDate>
    <dc:creator>audioa84</dc:creator>
    <dc:date>2013-03-15T21:17:00Z</dc:date>
    <item>
      <title>Two questions involving prompts in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Two-questions-involving-prompts-in-Enterprise-Guide/m-p/78854#M7752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I have looked through quite a few of the previous posted discussions on prompts and haven't found any answers to two questions I have.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;1. &lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Here is the scenario. In a project built using SAS EG 5.1, I take an original data set and use a Query Builder to filter on certain fields (columns) and do various other things. In that Query Builder, I set up some prompts for the aforementioned filters. Say, for example, that there is a field called 'Numbers' containing integers 1 through 10 and the prompt is named "Selected_Numbers". I want to use the value contained in the prompt "Selected_Numbers" later in the project in a SAS Program. I have selected the "Use prompt value throughout project" box and the prompt functions correctly in the Query Builder. What do I need to do to be able to access the value stored in "Selected_Numbers"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;2. I have a program (not the one mentioned in #1 but also in EG 5.1) for which a prompt is necessary. I have added the prompt by right clicking on the program, going to properties and adding the prompt under the "Prompts" section found in the left pane. What do I need to do to access this prompts value in the program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I have been using EG for about a week and a half now and this is my first post under SAS' discussion board, so if I have posted this in the wrong place or have said/done something incorrect, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thank you in advance for your insights,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;audioa84&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 21:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Two-questions-involving-prompts-in-Enterprise-Guide/m-p/78854#M7752</guid>
      <dc:creator>audioa84</dc:creator>
      <dc:date>2013-03-15T21:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Two questions involving prompts in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Two-questions-involving-prompts-in-Enterprise-Guide/m-p/78855#M7753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on how you want to use it. In query builder, another task or in code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a paper that explains how to build reports using prompts. &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lexjansen.com/wuss/2010/tut/3049_4_tut-leslie.pdf" title="http://www.lexjansen.com/wuss/2010/tut/3049_4_tut-leslie.pdf"&gt;http://www.lexjansen.com/wuss/2010/tut/3049_4_tut-leslie.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Mar 2013 02:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Two-questions-involving-prompts-in-Enterprise-Guide/m-p/78855#M7753</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-03-16T02:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Two questions involving prompts in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Two-questions-involving-prompts-in-Enterprise-Guide/m-p/78856#M7754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use the name "SAS Program", I mean base SAS code contained in a SAS Program (try right clicking the background in a project flow, click new and select program. Unfortunately, the portion of the paper you linked to only covers the basics of adding a prompt to a Query Builder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 13:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Two-questions-involving-prompts-in-Enterprise-Guide/m-p/78856#M7754</guid>
      <dc:creator>audioa84</dc:creator>
      <dc:date>2013-03-18T13:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Two questions involving prompts in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Two-questions-involving-prompts-in-Enterprise-Guide/m-p/78857#M7755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To access the value in a SAS program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- in the program Properties window, select the Prompts tab and add the prompt you want to associate with the program.&amp;nbsp; You'll be able to select a prompt that you have already defined for use in the query builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- in your program, use the SAS macro variable that is created by the Prompt definition.&amp;nbsp; Usually this is just the name of the prompt (ex: &amp;amp;number), but for certain prompt types the macro variable might not be so obvious.&amp;nbsp; You can use the &lt;A href="http://blogs.sas.com/content/sasdummy/2011/11/22/inspecting-sas-macro-variables-in-sas-enterprise-guide/"&gt;Macro Viewer custom task&lt;/A&gt; as an easy method to find out which macro variables are created by the Query Builder prompt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also find &lt;A href="http://blogs.sas.com/content/bi/2012/03/14/three_examples_of_egwherepara/"&gt;this post from Angela&lt;/A&gt; to be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 13:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Two-questions-involving-prompts-in-Enterprise-Guide/m-p/78857#M7755</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-03-18T13:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Two questions involving prompts in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Two-questions-involving-prompts-in-Enterprise-Guide/m-p/78858#M7756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. For some reason when I tried just using &amp;amp;number prior to posting my questions, it wasn't working. However, after trying it again after reading your response, its working fine. Thanks for the info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 15:13:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Two-questions-involving-prompts-in-Enterprise-Guide/m-p/78858#M7756</guid>
      <dc:creator>audioa84</dc:creator>
      <dc:date>2013-03-19T15:13:35Z</dc:date>
    </item>
  </channel>
</rss>

