<?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 Error Proc Sql connect to in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-Proc-Sql-connect-to/m-p/762215#M241305</link>
    <description>&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;CONNECT&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ORACLE &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; EX(authdomain=yyyy path=xxx connection=global); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;CREATE&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;TABLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TEST20 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;AS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;SELECT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; CONNECTION TO EX (&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;WITH TMP_HD &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;AS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;SELECT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;CDR.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;* , &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MF.DATE,&lt;/P&gt;&lt;P&gt;MF.CD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SP_V.TEST1 CDR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;LEFT&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;JOIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SP_V.TEST2 MF &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; MF.ID=CDR.ID &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;WHERE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;CDR.ID =&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;TMP_SPL &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;AS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;SELECT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SPL.REGION,&lt;/P&gt;&lt;P&gt;PCS.TYPE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SP_V.TEST3 SPL &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JOIN TMP_HD S&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SPL.REGION = S.REGION &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JOIN SP_V.TEST4 PCS&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SPL.REGION = PCS.REGION &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;SELECT&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#008080"&gt;H.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*, &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;F.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;* &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TMP_HD H &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;LEFT&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;JOIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TMP_SPL F &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; H.REGION = F.REGION &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;DISCONNECT&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;EX ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;QUIT&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run above code it gives below error&lt;/P&gt;&lt;P&gt;ERROR: ORACLE prepare error: ORA-00907: missing right parenthesis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help .&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2021 02:58:32 GMT</pubDate>
    <dc:creator>jhh197</dc:creator>
    <dc:date>2021-08-18T02:58:32Z</dc:date>
    <item>
      <title>Error Proc Sql connect to</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Proc-Sql-connect-to/m-p/762215#M241305</link>
      <description>&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;CONNECT&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ORACLE &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; EX(authdomain=yyyy path=xxx connection=global); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;CREATE&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;TABLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TEST20 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;AS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;SELECT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; CONNECTION TO EX (&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;WITH TMP_HD &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;AS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;SELECT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;CDR.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;* , &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MF.DATE,&lt;/P&gt;&lt;P&gt;MF.CD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SP_V.TEST1 CDR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;LEFT&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;JOIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SP_V.TEST2 MF &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; MF.ID=CDR.ID &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;WHERE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;CDR.ID =&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;TMP_SPL &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;AS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;SELECT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SPL.REGION,&lt;/P&gt;&lt;P&gt;PCS.TYPE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SP_V.TEST3 SPL &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JOIN TMP_HD S&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SPL.REGION = S.REGION &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JOIN SP_V.TEST4 PCS&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SPL.REGION = PCS.REGION &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;SELECT&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#008080"&gt;H.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*, &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;F.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;* &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TMP_HD H &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;LEFT&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;JOIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TMP_SPL F &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; H.REGION = F.REGION &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;DISCONNECT&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;EX ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;QUIT&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run above code it gives below error&lt;/P&gt;&lt;P&gt;ERROR: ORACLE prepare error: ORA-00907: missing right parenthesis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help .&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 02:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Proc-Sql-connect-to/m-p/762215#M241305</guid>
      <dc:creator>jhh197</dc:creator>
      <dc:date>2021-08-18T02:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error Proc Sql connect to</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Proc-Sql-connect-to/m-p/762217#M241306</link>
      <description>&lt;P&gt;Please reformat your code.&lt;/P&gt;
&lt;P&gt;As it is, maybe a rogue character has entered it, probably in one of the WITH clauses, and maybe near the end. Remove all spaces and retype them.&lt;/P&gt;
&lt;P&gt;A proper editor such as Notepad++ can display all the characters.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 03:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Proc-Sql-connect-to/m-p/762217#M241306</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-08-18T03:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error Proc Sql connect to</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Proc-Sql-connect-to/m-p/762390#M241387</link>
      <description>&lt;P&gt;The error is perfectly obvious. Count the number of left parentheses (4) and the number of right&amp;nbsp;parentheses (3) in the posted code. You are missing one right parentheses to balance your syntax. As to where it should go I'll leave that up to you as you are using Oracle-specific syntax and type of joining you are doing is not clear to me.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 22:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Proc-Sql-connect-to/m-p/762390#M241387</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-08-18T22:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error Proc Sql connect to</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Proc-Sql-connect-to/m-p/762466#M241434</link>
      <description>&lt;P&gt;I must be blind, I see balanced parentheses.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 05:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Proc-Sql-connect-to/m-p/762466#M241434</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-08-19T05:50:57Z</dc:date>
    </item>
  </channel>
</rss>

