<?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: Syntax Error Using SAS EG Prompt GUI in a Filtered Query in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syntax-Error-Using-SAS-EG-Prompt-GUI-in-a-Filtered-Query/m-p/781082#M39856</link>
    <description>&lt;P&gt;As a workaround, I figured out that if I change the "Number of values:" field, on the Prompt Type and Values tab of the Edit Prompt window, to "Multiple values", rather than "Single value", then I don't receive the syntax error. For my purposes this is an acceptable fix since I don't need to limit the user to a single value. However, why this error exists for "signal value" prompt types still needs to be resolved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CJamison_0-1637257167636.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65883iB88FF74300BC7858/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CJamison_0-1637257167636.png" alt="CJamison_0-1637257167636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Nov 2021 17:40:03 GMT</pubDate>
    <dc:creator>CJamison</dc:creator>
    <dc:date>2021-11-18T17:40:03Z</dc:date>
    <item>
      <title>Syntax Error Using SAS EG Prompt GUI in a Filtered Query</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syntax-Error-Using-SAS-EG-Prompt-GUI-in-a-Filtered-Query/m-p/780753#M39854</link>
      <description>&lt;P&gt;I have a computed column (PUTMONTHTEST) that is the basis for a prompt (Prompt_3) asking the user for the month (i.e. November) to use in a filter, but it results in a NOTE and and ERROR (see code). I've produced all code using GUIs and tried a number of things to resolve/understand what's going on but I need some help.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;		 ;*';*";*/;quit;run;
		OPTIONS PAGENO=MIN;
		%LET Prompt_1 = DEPT1;
		%LET Prompt_10 = 3;
		%LET Prompt_11 = DEPT1;
		%LET Prompt_12 = DEPT2;
		%LET Prompt_13 = DEPT3;
		%LET Prompt_1_count = 3;
		%LET Prompt_3 = November;

	PROC SQL NOEXEC;
		SELECT 	t1.COLUMN_1,
                 	t1.COLUMN_2,
                 	t1.DATE_1,
                 	t1.PUTMONTH,
              FROM WORK.APPEND_TABLE_0000 t1
              WHERE %_eg_WhereParam( t1.COLUMN_1, Prompt_1, IN, TYPE=S, IS_EXPLICIT=0 ) AND %_eg_WhereParam(
                    t1.PUTMONTH, Prompt_3, IN, TYPE=S, IS_EXPLICIT=0 )
NOTE: Line generated by the macro function "UNQUOTE".
             "November"
                
ERROR 22-322: Syntax error, expecting one of the following: (, SELECT.  

ERROR 76-322: Syntax error, statement will be ignored.

  		ORDER BY t1.COLUMN_1;
	QUIT;

	%SYMDEL Prompt_1;
	%SYMDEL Prompt_10;
	%SYMDEL Prompt_11;
	%SYMDEL Prompt_12;
	%SYMDEL Prompt_13;
	%SYMDEL Prompt_1_count;
	%SYMDEL Prompt_3;
   
	QUIT; RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Nov 2021 15:03:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syntax-Error-Using-SAS-EG-Prompt-GUI-in-a-Filtered-Query/m-p/780753#M39854</guid>
      <dc:creator>CJamison</dc:creator>
      <dc:date>2021-11-17T15:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error Using SAS EG Prompt GUI in a Filtered Query</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syntax-Error-Using-SAS-EG-Prompt-GUI-in-a-Filtered-Query/m-p/781082#M39856</link>
      <description>&lt;P&gt;As a workaround, I figured out that if I change the "Number of values:" field, on the Prompt Type and Values tab of the Edit Prompt window, to "Multiple values", rather than "Single value", then I don't receive the syntax error. For my purposes this is an acceptable fix since I don't need to limit the user to a single value. However, why this error exists for "signal value" prompt types still needs to be resolved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CJamison_0-1637257167636.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65883iB88FF74300BC7858/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CJamison_0-1637257167636.png" alt="CJamison_0-1637257167636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 17:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syntax-Error-Using-SAS-EG-Prompt-GUI-in-a-Filtered-Query/m-p/781082#M39856</guid>
      <dc:creator>CJamison</dc:creator>
      <dc:date>2021-11-18T17:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error Using SAS EG Prompt GUI in a Filtered Query</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syntax-Error-Using-SAS-EG-Prompt-GUI-in-a-Filtered-Query/m-p/781874#M39865</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see the error in the SQL&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="NataljaK_0-1637651414756.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66030i8B915B215C3A69AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NataljaK_0-1637651414756.png" alt="NataljaK_0-1637651414756.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There must not be ',' after&amp;nbsp; t1.PUTMONTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Natalja&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 07:12:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syntax-Error-Using-SAS-EG-Prompt-GUI-in-a-Filtered-Query/m-p/781874#M39865</guid>
      <dc:creator>NataljaK</dc:creator>
      <dc:date>2021-11-23T07:12:26Z</dc:date>
    </item>
  </channel>
</rss>

