<?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: SAS/ACCESS to connect to postgresql problem in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597292#M16130</link>
    <description>&lt;P&gt;Can you change your SAS encoding into 'utf-8'&amp;nbsp; ?&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 12:12:50 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-10-17T12:12:50Z</dc:date>
    <item>
      <title>SAS/ACCESS to connect to postgresql problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597204#M16104</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname x2 postgres server="xxx" port=xx database="xxxx" schema="xxx"
user=xx password="xxx";
The log is as below:

DIAG: ERROR :invalid value for parameter "client_encoding":"lantin1".&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have sas/access to postgresql connect to postresql.I have two ways.I have sas base don't occur the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i have eg ,The log is&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;invalid value for parameter "client_encoding":"lantin1".&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 08:13:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597204#M16104</guid>
      <dc:creator>shursulei</dc:creator>
      <dc:date>2019-10-17T08:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS to connect to postgresql problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597207#M16105</link>
      <description>&lt;P&gt;It looks like your client_encoding parameter has been incorrectly set to "la&lt;STRONG&gt;n&lt;/STRONG&gt;tin1" (an extra "n"), instead of "latin1".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 08:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597207#M16105</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2019-10-17T08:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS to connect to postgresql problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597235#M16116</link>
      <description>I have set system variable in the sasenv_local.&lt;BR /&gt;export PGCLIENTENCODING=latin1.&lt;BR /&gt;But the result is also as before.</description>
      <pubDate>Thu, 17 Oct 2019 10:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597235#M16116</guid>
      <dc:creator>shursulei</dc:creator>
      <dc:date>2019-10-17T10:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS to connect to postgresql problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597262#M16126</link>
      <description>&lt;P&gt;To Change the Encoding, you can refer my article:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Change-Encoding-using-SAS-Enterprise-Guide-Windowing-Environment/ta-p/597621" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Change-Encoding-using-SAS-Enterprise-Guide-Windowing-Environment/ta-p/597621&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the below libname after change the Encoding&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname test postgres server="xxx.xx.xxx.xx" port=xxxx user=xxxxxxx password='xxxxxx' database=xxxx schema=xxxxx;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 05:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597262#M16126</guid>
      <dc:creator>mrityunjaya</dc:creator>
      <dc:date>2019-10-22T05:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS to connect to postgresql problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597283#M16127</link>
      <description>&lt;P&gt;If you are getting the same result as before, as you said (invalid value for parameter "client_encoding":"la&lt;STRONG&gt;n&lt;/STRONG&gt;tin1" with the extra "n") then that indicates another setting has to be changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you add the &lt;FONT face="courier new,courier"&gt;client_encoding=&lt;/FONT&gt; option to the &lt;FONT face="courier new,courier"&gt;libname&lt;/FONT&gt; statement as shown in the following link?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n1q0m2sl5jsi7mn125qfkflg9hfl.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n1q0m2sl5jsi7mn125qfkflg9hfl.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 11:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597283#M16127</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2019-10-17T11:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS to connect to postgresql problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597292#M16130</link>
      <description>&lt;P&gt;Can you change your SAS encoding into 'utf-8'&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 12:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-ACCESS-to-connect-to-postgresql-problem/m-p/597292#M16130</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-10-17T12:12:50Z</dc:date>
    </item>
  </channel>
</rss>

