<?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: Help with syntax Error in PROC SQL in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718436#M38131</link>
    <description>&lt;P&gt;Please mark the question answered, by selecting one of the responses (not this one!) that answers your question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 22:42:52 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-02-10T22:42:52Z</dc:date>
    <item>
      <title>Help with syntax Error in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718389#M38125</link>
      <description>&lt;P&gt;CREATE table Work.PCGT1 AS&lt;BR /&gt;5705 SELECT&lt;BR /&gt;5706 POLICY_NUMBER,&lt;BR /&gt;5707 Sum(POLICY_COUNT) AS POLICY_COUNT,&lt;BR /&gt;5708 FROM WORK.BLCCRF&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ____&lt;BR /&gt;22&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, (, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, AND, BETWEEN,&lt;BR /&gt;CONTAINS, EQ, EQT, FROM, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~=.&lt;/P&gt;
&lt;P&gt;5709 GROUP BY POLICY_NUMBER&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _____&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?,&lt;BR /&gt;AND, AS, BETWEEN, CONTAINS, EQ, EQT, FORMAT, FROM, GE, GET, GT, GTT, IN, INFORMAT, INTO, IS, LABEL, LE, LEN, LENGTH,&lt;BR /&gt;LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, TRANSCODE, ^, ^=, |, ||, ~, ~=.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;
&lt;P&gt;5710 HAVING POLICY_COUNT &amp;gt; 1&lt;BR /&gt;5711 ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm having trouble debugging this simple program. And for some additional information the Work.BLCCRF table does exist and has been referenced in previous blocks of code that ran fine. And every field that I'm calling is spelled correctly. What seems to be the problem?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 21:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718389#M38125</guid>
      <dc:creator>izzytetteh24</dc:creator>
      <dc:date>2021-02-10T21:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax Error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718394#M38126</link>
      <description>&lt;P&gt;Remove this comma:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;AS POLICY_COUNT,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 20:51:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718394#M38126</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-02-10T20:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax Error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718395#M38127</link>
      <description>Please remove the extra comma between the last variable and the from&lt;BR /&gt;statement.&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Feb 2021 20:51:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718395#M38127</guid>
      <dc:creator>TonyLMayo</dc:creator>
      <dc:date>2021-02-10T20:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax Error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718396#M38128</link>
      <description>&lt;P&gt;Wow that's it I really thought I needed that comma there. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 20:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718396#M38128</guid>
      <dc:creator>izzytetteh24</dc:creator>
      <dc:date>2021-02-10T20:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax Error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718397#M38129</link>
      <description>&lt;P&gt;You have an extra comma.&lt;/P&gt;
&lt;P&gt;If find it is much easier for humans to review code when such continuation characters are placed at the beginning of the line instead of the end (where even if they stay on the screen are not going to be in your natural line of sight).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;CREATE table Work.PCGT1 AS
SELECT POLICY_NUMBER
     , Sum(POLICY_COUNT) AS POLICY_COUNT
FROM WORK.BLCCRF
GROUP BY POLICY_NUMBER
HAVING POLICY_COUNT &amp;gt; 1
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also which version of POLICY_COUNT are you expecting the HAVING clause to reference?&amp;nbsp; The original variable or the one that is being calculated with the SUM() aggregate function?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 20:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718397#M38129</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-10T20:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax Error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718398#M38130</link>
      <description>I did it worked out. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 10 Feb 2021 20:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718398#M38130</guid>
      <dc:creator>izzytetteh24</dc:creator>
      <dc:date>2021-02-10T20:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with syntax Error in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718436#M38131</link>
      <description>&lt;P&gt;Please mark the question answered, by selecting one of the responses (not this one!) that answers your question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 22:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-syntax-Error-in-PROC-SQL/m-p/718436#M38131</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-02-10T22:42:52Z</dc:date>
    </item>
  </channel>
</rss>

