<?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: ERROR 79-322: WHERE CLAUSE in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/822857#M41053</link>
    <description>&lt;P&gt;I would try doing what the error message says and add in the closing parenthesis required when using the IN operator.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 14:21:47 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-07-12T14:21:47Z</dc:date>
    <item>
      <title>ERROR 79-322: WHERE CLAUSE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/822850#M41051</link>
      <description>&lt;P&gt;Keep getting an error when doing WHERE clause (I tried single quotes, double quotes, semi-colons, commas - still getting errors):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;23         proc sql;
24         create table PPP
25         as select
26         a.pid,
27         a.pcpNPI format=20. as pcpNPI2,
28         from TABLEf as A
29         inner join num1 as B
30        on a.pid=b.pid
31         where a.pcpNPI2 in ('444444444';
                                          _
                                          79
ERROR 79-322: Expecting a ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jul 2022 14:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/822850#M41051</guid>
      <dc:creator>bhca60</dc:creator>
      <dc:date>2022-07-12T14:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 79-322: WHERE CLAUSE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/822857#M41053</link>
      <description>&lt;P&gt;I would try doing what the error message says and add in the closing parenthesis required when using the IN operator.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 14:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/822857#M41053</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-07-12T14:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 79-322: WHERE CLAUSE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/822858#M41054</link>
      <description>There were parentheses on it but i thin becuase its separates by a semi-colon it's not reading it.</description>
      <pubDate>Tue, 12 Jul 2022 14:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/822858#M41054</guid>
      <dc:creator>bhca60</dc:creator>
      <dc:date>2022-07-12T14:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 79-322: WHERE CLAUSE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/822860#M41055</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290946"&gt;@bhca60&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;There were parentheses on it but i thin becuase its separates by a semi-colon it's not reading it.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Huh?&amp;nbsp; Semicolon marks the END of the STATEMENT.&amp;nbsp; If you have a list of values for the IN operator you can use a space or a comma (or a combination).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where age in (10,12,13)
where age in (14 15 16)
where name in ('Alfred' 'Alice')&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jul 2022 14:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/822860#M41055</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-07-12T14:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 79-322: WHERE CLAUSE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/823073#M41059</link>
      <description>&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/290946"&gt;@bhca60&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;There were parentheses on it but i thin becuase its separates by a semi-colon it's not reading it.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then you did not post the&amp;nbsp;&lt;STRONG&gt;complete&lt;/STRONG&gt; log, something we request&amp;nbsp;&lt;STRONG&gt;again and again and again. Please do so in the future.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 09:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/823073#M41059</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-13T09:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 79-322: WHERE CLAUSE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/823080#M41060</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where a.pcpNPI2 in ('444444444';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;SAS will always report an error when you have mis-matched or un-matched parentheses. So the error message tells you that SAS is expecting a parenthesis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Isn't this what you really want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where a.pcpNPI2 in ('444444444');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 11:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-79-322-WHERE-CLAUSE/m-p/823080#M41060</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-13T11:43:22Z</dc:date>
    </item>
  </channel>
</rss>

