<?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 NLS Encoding Value for a Session Not Obeying Default Set in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/NLS-Encoding-Value-for-a-Session-Not-Obeying-Default-Set/m-p/153247#M2646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I'm having an issue with my SAS 9.4 sessions encoding my data as if the default were Japanese DBCS (SHIFT-JIS), while my default locale and encoding appear to be set correctly (to en_US and wlatin1) in my configuration file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run "&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;proc options option=encoding option=locale;" after opening SAS, I get the response:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; SAS (r) Proprietary Software Release 9.4&amp;nbsp; TS1M1&lt;/P&gt;&lt;P&gt; ENCODING=SHIFT-JIS&lt;/P&gt;&lt;P&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; Specifies the default character-set encoding for the SAS session.&lt;/P&gt;&lt;P&gt; LOCALE=JA_JP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specifies a set of attributes in a SAS session that reflect the language, local conventions, and&lt;/P&gt;&lt;P&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; culture for a geographical region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checking my !SASROOT file "%put sasroot = %sysget(sasroot);" produces C:\Program Files\SASHome\SASFoundation\9.4, and opening the file sasv9.cfg within that directory, I see the command:&lt;/P&gt;&lt;P&gt; -config "C:\Program Files\SASHome\SASFoundation\9.4\nls\en\sasv9.cfg".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traveling to that file, I can see the commands that should set the default, I believe:&lt;/P&gt;&lt;P&gt;-SET SASCFG "C:\Program Files\SASHome\SASFoundation\9.4\nls\en"&lt;/P&gt;&lt;P&gt;-LOCALE en_US&lt;/P&gt;&lt;P&gt;-ENCODING wlatin1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with this?&amp;nbsp; It's such an annoyance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Aug 2014 19:45:16 GMT</pubDate>
    <dc:creator>acsb</dc:creator>
    <dc:date>2014-08-07T19:45:16Z</dc:date>
    <item>
      <title>NLS Encoding Value for a Session Not Obeying Default Set</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/NLS-Encoding-Value-for-a-Session-Not-Obeying-Default-Set/m-p/153247#M2646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I'm having an issue with my SAS 9.4 sessions encoding my data as if the default were Japanese DBCS (SHIFT-JIS), while my default locale and encoding appear to be set correctly (to en_US and wlatin1) in my configuration file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run "&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;proc options option=encoding option=locale;" after opening SAS, I get the response:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; SAS (r) Proprietary Software Release 9.4&amp;nbsp; TS1M1&lt;/P&gt;&lt;P&gt; ENCODING=SHIFT-JIS&lt;/P&gt;&lt;P&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; Specifies the default character-set encoding for the SAS session.&lt;/P&gt;&lt;P&gt; LOCALE=JA_JP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specifies a set of attributes in a SAS session that reflect the language, local conventions, and&lt;/P&gt;&lt;P&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; culture for a geographical region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checking my !SASROOT file "%put sasroot = %sysget(sasroot);" produces C:\Program Files\SASHome\SASFoundation\9.4, and opening the file sasv9.cfg within that directory, I see the command:&lt;/P&gt;&lt;P&gt; -config "C:\Program Files\SASHome\SASFoundation\9.4\nls\en\sasv9.cfg".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traveling to that file, I can see the commands that should set the default, I believe:&lt;/P&gt;&lt;P&gt;-SET SASCFG "C:\Program Files\SASHome\SASFoundation\9.4\nls\en"&lt;/P&gt;&lt;P&gt;-LOCALE en_US&lt;/P&gt;&lt;P&gt;-ENCODING wlatin1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with this?&amp;nbsp; It's such an annoyance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 19:45:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/NLS-Encoding-Value-for-a-Session-Not-Obeying-Default-Set/m-p/153247#M2646</guid>
      <dc:creator>acsb</dc:creator>
      <dc:date>2014-08-07T19:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: NLS Encoding Value for a Session Not Obeying Default Set</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/NLS-Encoding-Value-for-a-Session-Not-Obeying-Default-Set/m-p/153248#M2647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved my own question, or at least I've stopped the default.&amp;nbsp; Through a process of elimination, I figured out that SAS was loading the config file from a folder called "1d" which set the locale to Japan.&amp;nbsp; I removed that file, replaced it with the English one and now my default is western. I still don't know why that's where the program decided to pull the config file from, but I'm willing to live with the mystery if I can have western encoding.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 20:20:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/NLS-Encoding-Value-for-a-Session-Not-Obeying-Default-Set/m-p/153248#M2647</guid>
      <dc:creator>acsb</dc:creator>
      <dc:date>2014-08-07T20:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: NLS Encoding Value for a Session Not Obeying Default Set</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/NLS-Encoding-Value-for-a-Session-Not-Obeying-Default-Set/m-p/894427#M20834</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing same issue... Can you elaborate exactly how you resolved it stepwise?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 05:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/NLS-Encoding-Value-for-a-Session-Not-Obeying-Default-Set/m-p/894427#M20834</guid>
      <dc:creator>UmaGupta</dc:creator>
      <dc:date>2023-09-15T05:03:35Z</dc:date>
    </item>
  </channel>
</rss>

