<?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: Couldn't connect to remote WRDS server (encoding does not match) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/890108#M351707</link>
    <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;There was definitely no change in how I am starting SAS. I simply click on the desktop icon like I have always done. Just one or two days before this problem came up, I received a notice about my WRDS account about to expire and the need to extend license. After I extended the license, I had to change the password, and subsequently also had to change password encoding (as seen in the top of this page). Thereafter, I am unable to access WRDS server since this encoding conflict problem showed up. Although I have limited knowledge on software, I am confused why changing WRDS password and encoding would (apparently) cause a change in encoding conflict.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 20 Aug 2023 15:43:36 GMT</pubDate>
    <dc:creator>BranManderly34</dc:creator>
    <dc:date>2023-08-20T15:43:36Z</dc:date>
    <item>
      <title>Couldn't connect to remote WRDS server (encoding does not match)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889195#M351294</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;I have been using the following code to access WRDS server through local SAS installation for almost two years.&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/*remote sign on to WRDS*/
%let wrds = wrds-cloud.wharton.upenn.edu 4016;
options comamid=TCP remote=WRDS;
signon username={myusername} 
password="{my encoded wrds password}"; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;and it was working fine until today when I got this error message:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif"&gt;NOTE: The client session encoding shift-jis does not match the server session encoding utf-8.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="comic sans ms,sans-serif"&gt;This may produce errors when moving some character data. Search "SAS/CONNECT Encoding&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="comic sans ms,sans-serif"&gt;Compatibility" for details.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;The problem seems to be that the encoding of my local SAS session is not utf-8 and thus the access was unsuccessful. But I didn't change encoding at all and no idea why this issue suddenly pops up after everything has been fine for a long time. My thinking is that i just need to change the encoding of my local SAS to utf-8. I am not sure how to do it however, and if someone could guide me how to solve this issue, I would be grateful.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 14:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889195#M351294</guid>
      <dc:creator>BranManderly34</dc:creator>
      <dc:date>2023-08-14T14:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't connect to remote WRDS server (encoding does not match)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889241#M351309</link>
      <description>&lt;P&gt;You should have a shortcut in your local SAS installation that shows "SAS 9.4 (Unicode)" or similar. This is really just a shortcut to SAS.exe with a config file option that points to the ../u8/sasv9.cg file, which in turn contains the -ENCODING UTF8 option and a few other settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if the WRDS environment changed recently or if you've just gotten away with something different up to now.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 19:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889241#M351309</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2023-08-14T19:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't connect to remote WRDS server (encoding does not match)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889261#M351320</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;I checked the configuration line in&amp;nbsp;&lt;SPAN&gt;"C:\Program Files\SASHome\SASFoundation\9.4\sasv9.cfg" and it seems that it is correctly configred to encode in utf8. This is the line in the file: -config "C:\Program Files\SASHome\SASFoundation\9.4\nls\u8\sasv9.cfg"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But if I run&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc options option=encoding;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;the output shows&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc options option=encoding;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;SAS (r) Proprietary Software Release 9.4 TS1M4&lt;/P&gt;&lt;P&gt;ENCODING=SHIFT-JIS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometime last year, I was setting up SASPY, and if I remember correctly, I did change the encoding to wlatin1. But I have never heard or seen this SHIFT-JIS. Any idea what might be causing the problem? I contacted my department IT team and said they didn't change anything either.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 21:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889261#M351320</guid>
      <dc:creator>BranManderly34</dc:creator>
      <dc:date>2023-08-14T21:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't connect to remote WRDS server (encoding does not match)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889348#M351367</link>
      <description>&lt;P&gt;Can you check the contents of that u8/sasv9.cfg file? You should see lines like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;-DBCS 
-LOCALE en_US
-ENCODING UTF-8&lt;/PRE&gt;
&lt;P&gt;Also try this to see how the ENCODING value is set:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;proc options option=encoding define value;
run;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will yield details like:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;Option Value Information For SAS Option ENCODING
    Value: UTF-8
    Scope: SAS Session
    How option value set: Config File
    Config file name:
            C:\Program Files\SASHome\SASFoundation\9.4\nls\u8\sasv9.cfg&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Aug 2023 14:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889348#M351367</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2023-08-15T14:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't connect to remote WRDS server (encoding does not match)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889660#M351519</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;This is what I see on my side&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BranManderly34_0-1692280625562.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86770i251AE5911E810547/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BranManderly34_0-1692280625562.png" alt="BranManderly34_0-1692280625562.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It does seem to be set into UTF-8 mode? But, when I run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc options option=encoding define value;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get this output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Option Value Information For SAS Option ENCODING
    Value: SHIFT-JIS
    Scope: SAS Session
    How option value set: Config File
    Config file name:
            C:\Program Files\SASHome\SASFoundation\9.4\nls\1d\sasv9.cfg&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I really have no idea why it points to 1d folder instead of u8. Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 14:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889660#M351519</guid>
      <dc:creator>BranManderly34</dc:creator>
      <dc:date>2023-08-17T14:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't connect to remote WRDS server (encoding does not match)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889684#M351527</link>
      <description>&lt;P&gt;Helps not to post PICTURES of text so we could copy and paste text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the picture in the line that starts -SET SASCFG especially at the letters after NLS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then compare the whole line to that&lt;/P&gt;
&lt;PRE&gt; C:\Program Files\SASHome\SASFoundation\9.4\nls\1d\sasv9.cfg&lt;/PRE&gt;
&lt;P&gt;Not the same file.&lt;/P&gt;
&lt;P&gt;So your install is using a different configuration file than you looked at&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 15:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889684#M351527</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-17T15:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't connect to remote WRDS server (encoding does not match)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889696#M351533</link>
      <description>&lt;P&gt;You need to drill down in to how you are starting SAS to see why you are starting with that other config file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So how did you launch SAS?&lt;/P&gt;
&lt;P&gt;Did you type sas or sas.exe at the command line?&lt;/P&gt;
&lt;P&gt;Did you click on some Icon on your desktop of the "Start" menu?&lt;/P&gt;
&lt;P&gt;Did you click on SAS program file and let Windows magically try to figure out what program to run to use it?&lt;/P&gt;
&lt;P&gt;Some other way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely the config file is being picked based on some Environment setting that indicates the language or the locale and you have recently somehow convinced Windows that you need to use Japanese.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it is possible you are just accidentally starting SAS differently.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you have change the Windows associations to default to a different thing than before.&lt;/P&gt;
&lt;P&gt;Perhaps you are using the same ICON in the STart menu, but its properties have been modified to point to that other configuration file.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 16:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/889696#M351533</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-17T16:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't connect to remote WRDS server (encoding does not match)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/890107#M351706</link>
      <description>&lt;P&gt;Hi, thanks, your point not to post pictures is noted.&lt;/P&gt;&lt;P&gt;I looked at the contents of&amp;nbsp;C:\Program Files\SASHome\SASFoundation\9.4\nls\1d\sasv9.cfg, and the following is what I see&lt;/P&gt;&lt;PRE&gt;-FONTSLOC C:\WINDOWS\Fonts
-SET MYSASFILES "?FOLDERID_Documents\My SAS Files\9.4"
-SASUSER "?FOLDERID_Documents\My SAS Files\9.4"
-WORK "!TEMP\SAS Temporary Files"
-MEMSIZE 2G
-SORTSIZE 1G
-SET SASCFG "C:\Program Files\SASHome\SASFoundation\9.4\nls\1d"
-DBCS 
-LOCALE ja_JP
-TEXTURELOC !SASROOT\common\textures
-SET SAS_NO_RANDOM_ACCESS "1"
-ENCODING shift-jis
-IMLPACKAGEPRIVATE "?FOLDERID_Documents\My SAS Files\IML\Packages"
-IMLPACKAGEPUBLIC "?FOLDERID_ProgramData\SAS\IML\Packages"
-IMLPACKAGESYSTEM "!SASROOT\iml\sasmisc\packages"
-SET SASAML !SASROOT\share\sasmacro&lt;/PRE&gt;&lt;P&gt;In this file, the encoding is indeed set to shift-jis. If I change it to utf-8, the problem I have now would supposedly be solved? If so, could you help me with how to change the encoding back to utf-8?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2023 15:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/890107#M351706</guid>
      <dc:creator>BranManderly34</dc:creator>
      <dc:date>2023-08-20T15:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't connect to remote WRDS server (encoding does not match)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/890108#M351707</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;There was definitely no change in how I am starting SAS. I simply click on the desktop icon like I have always done. Just one or two days before this problem came up, I received a notice about my WRDS account about to expire and the need to extend license. After I extended the license, I had to change the password, and subsequently also had to change password encoding (as seen in the top of this page). Thereafter, I am unable to access WRDS server since this encoding conflict problem showed up. Although I have limited knowledge on software, I am confused why changing WRDS password and encoding would (apparently) cause a change in encoding conflict.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2023 15:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/890108#M351707</guid>
      <dc:creator>BranManderly34</dc:creator>
      <dc:date>2023-08-20T15:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't connect to remote WRDS server (encoding does not match)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/890127#M351717</link>
      <description>&lt;P&gt;On my machine when I hit the windows key on the keyboard and start typing SA it normally shows the icon to start SAS with English as the "best match".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_2-1692566269995.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86852i9B23CB3591B685D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_2-1692566269995.png" alt="Tom_2-1692566269995.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If I finish type SAS then it shows more choices:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_3-1692566316146.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86853i4131CA3A3C94A1E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_3-1692566316146.png" alt="Tom_3-1692566316146.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess is that for some reason it has decided that you like to use SAS 9.4 (Japanese)&amp;nbsp; instead of SAS 9.4 (Unicode Support).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you right click on one of the SAS icons you should be able to have it show you the file location.&lt;/P&gt;
&lt;P&gt;That will open File Explorer.&amp;nbsp; Should look something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1692565873604.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86850iADFAEE5C1155BCD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_0-1692565873604.png" alt="Tom_0-1692565873604.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So if you have the same choices make sure you are picking the one that says Unicode Support and not the Japanese one or the DBCS one.&lt;/P&gt;
&lt;P&gt;If that does not help then right click on the one you are using and select properties.&amp;nbsp; You should see something like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_1-1692566046229.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86851iFE3CE9A8C9A4A552/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_1-1692566046229.png" alt="Tom_1-1692566046229.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Copy the value of the TARGET setting.&amp;nbsp; Should look something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"C:\Program Files\SASHome\SASFoundation\9.4\sas.exe" -CONFIG "C:\Program Files\SASHome\SASFoundation\9.4\nls\u8\sasv9.cfg"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If that is what is says then check the contents of that particular sasv9.cfg file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2023 21:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/890127#M351717</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-20T21:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't connect to remote WRDS server (encoding does not match)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/890128#M351718</link>
      <description>Hi Tom,&lt;BR /&gt;This definitely worked. Weirdly enough, the shortcut on the desktop was changed to the one with DBCS instead of Unicode. After changing to Unicode, everything is back to normal. Thanks!</description>
      <pubDate>Sun, 20 Aug 2023 22:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Couldn-t-connect-to-remote-WRDS-server-encoding-does-not-match/m-p/890128#M351718</guid>
      <dc:creator>BranManderly34</dc:creator>
      <dc:date>2023-08-20T22:17:56Z</dc:date>
    </item>
  </channel>
</rss>

