<?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: proc sql giving error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852379#M336948</link>
    <description>&lt;P&gt;Try removing your DISCONNECT statement. Looks like it contains an unprintable character typo. SAS will disconnect automatically with the QUIT statement anyway.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2023 19:59:28 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-01-05T19:59:28Z</dc:date>
    <item>
      <title>proc sql giving error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852351#M336934</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need help in below query. I am trying to create a macro in pass through query&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;connect to POSTGRES as ab(user="xxxx"&amp;nbsp; password="abcde" );&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;select dim_cnt into :dimcnt from connection to ab&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (select count(dimcnt) as dim_cnt from lib.tab); &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; disconnect from ef;&lt;BR /&gt;quit;&lt;BR /&gt;%put &amp;amp;dimcnt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;library connection worked but getting syntax error like&amp;nbsp; below. Please help me in resolving this query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR 79-322: Expecting a (.&lt;/P&gt;
&lt;P&gt;84 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; disconnect from ef;&lt;BR /&gt;----------------------------------------------------&lt;BR /&gt;217&lt;BR /&gt;ERROR 217-322: Invalid statement due to first character being unprintable (hexadecimal representation: &lt;BR /&gt;C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0C2A0).&lt;BR /&gt;85 quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 20:07:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852351#M336934</guid>
      <dc:creator>Aexor</dc:creator>
      <dc:date>2023-01-05T20:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql giving error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852362#M336938</link>
      <description>&lt;P&gt;Please show us the ENTIRE log for this PROC SQL. Please copy the log as text and paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Insert Log Icon in SAS Communities.png" style="width: 859px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66171iFEC370B1DBF07B28/image-size/large?v=v2&amp;amp;px=999" role="button" title="Insert Log Icon in SAS Communities.png" alt="Insert Log Icon in SAS Communities.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 19:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852362#M336938</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-05T19:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql giving error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852379#M336948</link>
      <description>&lt;P&gt;Try removing your DISCONNECT statement. Looks like it contains an unprintable character typo. SAS will disconnect automatically with the QUIT statement anyway.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 19:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852379#M336948</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-01-05T19:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql giving error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852383#M336951</link>
      <description>&lt;P&gt;Unprintable character might be something that you didn't see when copy/paste from another document.&lt;/P&gt;
&lt;P&gt;I would try deleting everything on the line before the "disconnect from ef;" If you still that error then delete everything to the semicolon on the previous line in case the offensive character(s) are appearing at the end of that line as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As may have been pointed out previously, the main message windows on this forum reformat text. So if you want us to actually see what was in your code or your log you need to open a text box using the &amp;lt;/&amp;gt; icon above the message window and paste the text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 20:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852383#M336951</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-01-05T20:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql giving error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852388#M336952</link>
      <description>&lt;P&gt;'A0'x is a "non-breaking" space.&lt;/P&gt;
&lt;P&gt;'C2A0'x is the same character in UTF-8 encoding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace them with actual spaces instead.&amp;nbsp; And actual space is '20'x .&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 20:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852388#M336952</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-01-05T20:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql giving error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852392#M336954</link>
      <description>This type of error can happen if you copy and paste the code from a browser or formatted document to a text file.</description>
      <pubDate>Thu, 05 Jan 2023 20:41:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-giving-error/m-p/852392#M336954</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-01-05T20:41:50Z</dc:date>
    </item>
  </channel>
</rss>

