<?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: SAS EG prompt - how to use in query builder? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458732#M29552</link>
    <description>&lt;P&gt;Dumb question, have you connected the prompt to the query so that it's selected or defined before the run?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16571"&gt;@Wouter&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi, thank you for your answer. I've created the 'prompt variable' at the beginning of the project. When I want it to use later in a query builder (see also the picture below): the output name is: WORK.HHI_Banks_&amp;amp;rep_date, and the output table is... indeed called WORK.HHI_Banks_&amp;amp;rep_date...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prompt" style="width: 425px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20267i72F7EA32D42FC9F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Rep_date.JPG" alt="Prompt" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Prompt&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="First query in project where Rep_date is created by prompt" style="width: 77px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20268i13AC482AAF5072F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Retrieve.JPG" alt="First query in project where Rep_date is created by prompt" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;First query in project where Rep_date is created by prompt&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The query builder" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20269i43D4A412FE0C1164/image-size/large?v=v2&amp;amp;px=999" role="button" title="Query Builder.JPG" alt="The query builder" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The query builder&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2018 16:23:15 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-04-30T16:23:15Z</dc:date>
    <item>
      <title>SAS EG prompt - how to use in query builder?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458693#M29543</link>
      <description>&lt;P&gt;All, I maybe do have a simple question... In EG, I've created a prompt ("rep_date") in which a user can enter some number (date). This date I want to use in a query builder, as part of the name of a new SAS table (see picture in the doc file).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the table created doesn't contain the text as entered by the user, but the name of the macro (so the output table is called WORK.Test_&amp;amp;rep_date in stead of something like WORK.Test_31JAN2018).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a solution for this, or is it not possible to use a macro var this way? A text based prompt doesn't work either...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm on SAS EG 7.12.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the response!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 15:26:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458693#M29543</guid>
      <dc:creator>Wouter</dc:creator>
      <dc:date>2018-04-30T15:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG prompt - how to use in query builder?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458696#M29544</link>
      <description>&lt;P&gt;You can definitely use it in the manner. Can you detail how you created it?&lt;/P&gt;
&lt;P&gt;What's the macro variable name and what did you get as output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many people can't/won't download attachments and you can include screenshots by using the photos button in the editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16571"&gt;@Wouter&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;All, I maybe do have a simple question... In EG, I've created a prompt ("rep_date") in which a user can enter some number (date). This date I want to use in a query builder, as part of the name of a new SAS table (see picture in the doc file).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the table created doesn't contain the text as entered by the user, but the name of the macro (so the output table is called WORK.Test_&amp;amp;rep_date in stead of something like WORK.Test_31JAN2018).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a solution for this, or is it not possible to use a macro var this way? A text based prompt doesn't work either...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm on SAS EG 7.12.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the response!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 15:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458696#M29544</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-30T15:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG prompt - how to use in query builder?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458724#M29549</link>
      <description>&lt;P&gt;Hi, thank you for your answer. I've created the 'prompt variable' at the beginning of the project. When I want it to use later in a query builder (see also the picture below): the output name is: WORK.HHI_Banks_&amp;amp;rep_date, and the output table is... indeed called WORK.HHI_Banks_&amp;amp;rep_date...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prompt" style="width: 425px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20267i72F7EA32D42FC9F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Rep_date.JPG" alt="Prompt" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Prompt&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="First query in project where Rep_date is created by prompt" style="width: 77px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20268i13AC482AAF5072F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Retrieve.JPG" alt="First query in project where Rep_date is created by prompt" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;First query in project where Rep_date is created by prompt&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The query builder" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20269i43D4A412FE0C1164/image-size/large?v=v2&amp;amp;px=999" role="button" title="Query Builder.JPG" alt="The query builder" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The query builder&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 16:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458724#M29549</guid>
      <dc:creator>Wouter</dc:creator>
      <dc:date>2018-04-30T16:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG prompt - how to use in query builder?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458732#M29552</link>
      <description>&lt;P&gt;Dumb question, have you connected the prompt to the query so that it's selected or defined before the run?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16571"&gt;@Wouter&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi, thank you for your answer. I've created the 'prompt variable' at the beginning of the project. When I want it to use later in a query builder (see also the picture below): the output name is: WORK.HHI_Banks_&amp;amp;rep_date, and the output table is... indeed called WORK.HHI_Banks_&amp;amp;rep_date...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prompt" style="width: 425px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20267i72F7EA32D42FC9F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Rep_date.JPG" alt="Prompt" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Prompt&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="First query in project where Rep_date is created by prompt" style="width: 77px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20268i13AC482AAF5072F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Retrieve.JPG" alt="First query in project where Rep_date is created by prompt" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;First query in project where Rep_date is created by prompt&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The query builder" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20269i43D4A412FE0C1164/image-size/large?v=v2&amp;amp;px=999" role="button" title="Query Builder.JPG" alt="The query builder" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The query builder&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 16:23:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458732#M29552</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-30T16:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG prompt - how to use in query builder?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458915#M29559</link>
      <description>&lt;P&gt;Yes, at 2 places now; one at the start of the project (ticked: "use prompt value throughout project) and now one at the query builder in question itself. Same outcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Part of the log:&lt;/P&gt;
&lt;P&gt;NOTE: Compressing data set WORK.test_&amp;amp;REP_DATE'n increased size by 100.00 percent.&lt;/P&gt;
&lt;P&gt;Compressed is 2 pages; un-compressed would require 1 pages.&lt;/P&gt;
&lt;P&gt;NOTE: Table WORK.'test_&amp;amp;REP_DATE'n created, with 26 rows and 5 columns.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 07:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458915#M29559</guid>
      <dc:creator>Wouter</dc:creator>
      <dc:date>2018-05-01T07:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG prompt - how to use in query builder?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458919#M29561</link>
      <description>&lt;P&gt;Looks like SAS is using the 'Table Name'n type syntax and the macro variable needs double quotes to resolve. Is there an option to change this behaviour?&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 08:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458919#M29561</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-05-01T08:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG prompt - how to use in query builder?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458930#M29563</link>
      <description>&lt;P&gt;Yeah, got it now... Looks like a bug, or a very strange way to solve this (that is, in this version??). In the query, hit "Options". Now you'll see:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Output data:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Name: 'HHI_Cr_Institutions_&amp;amp;Rep_date'n&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Label: HHI_Cr_Institutions_&amp;amp;Rep_date&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, hit "Change", and hit "Cancel", and the "Name" will change, equal to the label. Now, click "OK" and &lt;STRONG&gt;don't run the query&lt;/STRONG&gt;, just save it. From now on, it will pick up the macro variable...&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 08:47:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-prompt-how-to-use-in-query-builder/m-p/458930#M29563</guid>
      <dc:creator>Wouter</dc:creator>
      <dc:date>2018-05-01T08:47:24Z</dc:date>
    </item>
  </channel>
</rss>

