<?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: Multine Prompt in a Character Column in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multine-Prompt-in-a-Character-Column/m-p/513623#M32535</link>
    <description>&lt;P&gt;I think I got something similar to your query working. I needed to make two changes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the "build a filter" window, I clicked on the arrow beside the values box, and selected &amp;amp;CIF under the Prompts tab. This resulted in a query that looked like this (I was using sashelp.class as my source table).&lt;/P&gt;
&lt;P&gt;PROC SQL;&lt;BR /&gt; CREATE TABLE WORK.QUERY_FOR_CLASS_0000 AS &lt;BR /&gt; SELECT t1.Name, &lt;BR /&gt; t1.Sex, &lt;BR /&gt; t1.Age, &lt;BR /&gt; t1.Height, &lt;BR /&gt; t1.Weight&lt;BR /&gt; FROM SASHELP.CLASS t1&lt;BR /&gt; WHERE t1.Age IN &lt;BR /&gt; (&lt;BR /&gt; &amp;amp;CIF&lt;BR /&gt; );&lt;BR /&gt;QUIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added commas between the numeric values, so my prompt value looked like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;11,&lt;BR /&gt;13,&lt;BR /&gt;14&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Tom&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2018 21:12:25 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2018-11-15T21:12:25Z</dc:date>
    <item>
      <title>Multine Prompt in a Character Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multine-Prompt-in-a-Character-Column/m-p/513565#M32534</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to put a multi line prompt in a where clause&amp;nbsp;to filter&amp;nbsp;a character column but I got no result at all and the log doesn't show any error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;7          %LET CIF = 0000005979
8          0000006911
9          0000004955
10         0000007464;
11         
12         ODS _ALL_ CLOSE;
13         OPTIONS DEV=ACTIVEX;
14         GOPTIONS XPIXELS=0 YPIXELS=0;
15         FILENAME EGSR TEMP;
16         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
17             STYLE=HtmlBlue
18             STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/6.1/Styles/HtmlBlue.css")
19             NOGTITLE
20             NOGFOOTNOTE
21             GPATH=&amp;amp;sasworklocation
22             ENCODING=UTF8
23             options(rolap="on")
24         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
25         
26         GOPTIONS ACCESSIBLE;
27         
28         %_eg_conditional_dropds(WORK.QUERY_FOR_CLIENTES);
29         


30         PROC SQL;
31            CREATE TABLE WORK.QUERY_FOR_CLIENTES AS
32            SELECT t1.NRO_CUENTA,
33                   t1.CIF,
34                   t1.CLIENTE,
35                   t1.CEDULA,
36                   t1.PASAPORTE,
37                   t1.RNC,
38                   t1.SEGMENTO,
39                   t1.TIPO_CUENTA,
40                   t1.OFICIAL,
41                   t1.CENTRO
42               FROM WORK.CLIENTES t1
43               WHERE %_eg_WhereParam (t1.CIF, CIF, IN, TYPE=S, IS_EXPLICIT=0);
NOTE: Table WORK.QUERY_FOR_CLIENTES created, with 0 rows and 10 columns.

44         QUIT;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 20:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multine-Prompt-in-a-Character-Column/m-p/513565#M32534</guid>
      <dc:creator>rodrichiez</dc:creator>
      <dc:date>2018-11-15T20:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multine Prompt in a Character Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multine-Prompt-in-a-Character-Column/m-p/513623#M32535</link>
      <description>&lt;P&gt;I think I got something similar to your query working. I needed to make two changes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the "build a filter" window, I clicked on the arrow beside the values box, and selected &amp;amp;CIF under the Prompts tab. This resulted in a query that looked like this (I was using sashelp.class as my source table).&lt;/P&gt;
&lt;P&gt;PROC SQL;&lt;BR /&gt; CREATE TABLE WORK.QUERY_FOR_CLASS_0000 AS &lt;BR /&gt; SELECT t1.Name, &lt;BR /&gt; t1.Sex, &lt;BR /&gt; t1.Age, &lt;BR /&gt; t1.Height, &lt;BR /&gt; t1.Weight&lt;BR /&gt; FROM SASHELP.CLASS t1&lt;BR /&gt; WHERE t1.Age IN &lt;BR /&gt; (&lt;BR /&gt; &amp;amp;CIF&lt;BR /&gt; );&lt;BR /&gt;QUIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added commas between the numeric values, so my prompt value looked like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;11,&lt;BR /&gt;13,&lt;BR /&gt;14&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multine-Prompt-in-a-Character-Column/m-p/513623#M32535</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-11-15T21:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multine Prompt in a Character Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multine-Prompt-in-a-Character-Column/m-p/513631#M32536</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The prompt works fine&amp;nbsp;with numeric values, my problem is that I'm filtering in a character column.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multine-Prompt-in-a-Character-Column/m-p/513631#M32536</guid>
      <dc:creator>rodrichiez</dc:creator>
      <dc:date>2018-11-15T21:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multine Prompt in a Character Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multine-Prompt-in-a-Character-Column/m-p/513673#M32538</link>
      <description>&lt;P&gt;I tried some different variations, but I didn't have any luck. It may take some digging into the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't needed to use this construct before, so I'm not familiar with it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multine-Prompt-in-a-Character-Column/m-p/513673#M32538</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-11-15T21:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multine Prompt in a Character Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multine-Prompt-in-a-Character-Column/m-p/514479#M32546</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15142"&gt;@TomKari&lt;/a&gt;&amp;nbsp;Ok, thanks Tom. I have found a solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let customer_id = &amp;amp;CIF;&lt;BR /&gt;%let CUST="%sysfunc(tranwrd(&amp;amp;customer_id,%str( ),%str(" ")))";&lt;BR /&gt;%put &amp;amp;CUST;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code add quotes to the values inserted in the prompt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 16:17:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multine-Prompt-in-a-Character-Column/m-p/514479#M32546</guid>
      <dc:creator>rodrichiez</dc:creator>
      <dc:date>2018-11-19T16:17:35Z</dc:date>
    </item>
  </channel>
</rss>

