<?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: Solaris | Encoding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670830#M201418</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follows the results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;26         %put %sysfunc(getoption(encoding));
LATIN1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It's exactly the same results for our previous server and I use the same version of SAS EG (on the same client machine) to connect to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2020 22:21:41 GMT</pubDate>
    <dc:creator>MariaD</dc:creator>
    <dc:date>2020-07-20T22:21:41Z</dc:date>
    <item>
      <title>Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669500#M200849</link>
      <description>&lt;P&gt;Hi folks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are using a new SAS environment on Solaris. Our users have some folders and tables name with latin characters (for example: "ó").&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Under PuTTY we verify the folder exists and is as expected: "/usuarios/nuevo_usuario/Histórico"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On SAS, using SAS EG 7.15, we define a libname with the mentioned path. According log information, the libname was correctly assigned to the defined path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;26         libname test '/usuarios/nuevo_usuario/Histórico';
NOTE: Libref TEST was successfully assigned as follows: 
      Engine:        V9 
      Physical Name: /usuarios/nuevo_usuario/Histórico

28         data test.sample;
29           set sashelp.class;
30         run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set TEST.SAMPLE has 19 observations and 5 variables.
NOTE: Compressing data set TEST.SAMPLE increased size by 100.00 percent. 
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We execute a simple data step to create a table. According the log, again, everything is fine. But verifying the server using PuTTY, we realise the table as created inside a different path:&amp;nbsp;/usuarios/nuevo_usuario/&lt;FONT color="#FF0000"&gt;HistÃ³rico&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;As you can see, the "ó" character was converter from Latin to UTF. &amp;nbsp;There is any way to prevent it? Any SAS configuration or Solaris configuration?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Regards,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:12:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669500#M200849</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-07-15T15:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669664#M200912</link>
      <description>&lt;P&gt;Hi &lt;A class="trigger-hovercard" style="color: #007dc3;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36451" target="_blank"&gt;MariaD&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Check your sasv9.cfg file ( located somewhere at ...SASHome/SASFoundation/9.4/nls/en ) and make sure it has the following encoding set:&lt;/P&gt;
&lt;P&gt;-ENCODING wlatin1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 19:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669664#M200912</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2020-07-15T19:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669680#M200918</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51532"&gt;@LeonidBatkhan&lt;/a&gt;&amp;nbsp;, I'll try it and let you know. I need to restart SAS services after the change? I believe that it's not necessary.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 19:44:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669680#M200918</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-07-15T19:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669767#M200957</link>
      <description>&lt;P&gt;So you see 2 folders on the server?&amp;nbsp;Histórico and HistÃ³rico?&lt;/P&gt;
&lt;P&gt;When is the second one created?&amp;nbsp; After the libname statement is run?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 01:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669767#M200957</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-16T01:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669840#M200996</link>
      <description>&lt;P&gt;Make it a habit (and beat this into the heads of all your users) that you NEVER use anything other than&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the 26 letters of the standard alphabet&lt;/LI&gt;
&lt;LI&gt;the 10 digits of the decimal system&lt;/LI&gt;
&lt;LI&gt;underlines&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;in directory and file names on servers. &lt;STRONG&gt;NEVER&lt;/STRONG&gt;. It only causes problems and serves no real purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Client settings can cause all kinds of problems when trying to access files with UTF characters in the name.&lt;/P&gt;
&lt;P&gt;Anecdote:&lt;/P&gt;
&lt;P&gt;My MacBook failed to read mp3 files on my family NAS because an idiot system (Windows) wrote the single quotes in some titles as UTF single quotes, which appeared as funny character sequences in the Finder. Probably because the NAS coughed up on it.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 09:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669840#M200996</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-16T09:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669852#M201002</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36451"&gt;@MariaD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;:&amp;nbsp;IT is still a mess. Just make life easier for yourself by avoiding silly issues.&lt;/P&gt;
&lt;P&gt;And I should add that his native language&amp;nbsp;(like mine) uses "accented" letters too, so his reply is not born out of intolerance for funny squiggles.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 21:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669852#M201002</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-16T21:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669865#M201003</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;noted, my native language is German, and we do have the umlauts (Ä,Ö,Ü) and the so-called "sharp s" ß. Before those letters even appeared on mechanical devices (like IBM typewriters with German heads), it was common to translate those to ae, oe, ue and ss, respectively. When I started in IT, no computer knew those letters, so the translation was even used in official documents, if those were printed by computers.&lt;/P&gt;
&lt;P&gt;Nowadays, users are tempted to use these characters in filenames or elsewhere in a technical context.&lt;/P&gt;
&lt;P&gt;But see:&lt;/P&gt;
&lt;P&gt;The problem of native language characters was approached in stages; first, by using some bytes in the ASCII table for several purposes in different parts of the world (i.e., square brackets were replaced by Ä and Ü in certain German codepages, as square brackets are rarely used in German). This was done to keep using only 7 bits for a character (look into manuals of older terminals to understand this). Next, the "upper half" (most significant bit = 1) of the ASCII table was used, which can be found in the codepages of UNIX systems and Windows, which accommodated most of the Western European orthography. But with the need to use completely different writing systems (Cyrillic, Arabic, Hebraic, Korean, Japanese, Chinese), a much larger table of characters/symbols was implemented with the UTF system. The problem now is that the UTF characters need "entry points" from the single-byte character table, so they be identified as UTF; but the bit sequences of those "entry points" are already used in certain codepages for displayable characters, and if a data stream is not explicitly marked as UTF, lots of systems misunderstand the two-, three- or four-byte sequence of a UTF character for the usual characters associated with these 2/3/4 codes, resulting in hilarious (or not so) hilarious results.&lt;/P&gt;
&lt;P&gt;While desktop systems have learned to deal with this, there are areas in computing where UTF use can have serious consequences. Consider the fact that operating systems (including Windows!) have a hard limit of ~200 characters (bytes) for path names. A fully Chinese filename would only need 50 or so UTF characters/symbols to exceed that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other problems: as I experienced, there are now (at least) two single quotes available: the standard one, as also used in code, and a UTF one. That caused the "fun" with my MP3 files. Text writing software will auto-replace characters (Word, in German, will auto-replace double quotes with the "leading" and "trailing" quotes used in German, or it will use "beautified" (slightly curly) quotes; copy/pasting code with those will inevitably cause syntax errors).&lt;/P&gt;
&lt;P&gt;Another serious issue that happened to me: I used the letter "Ä" in a password, to follow the "at least one special character" rule. One computer sent the character from the Wlatin codepage, the other the UTF equivalent. Consequence: a locked user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bottom line: on the technical side (names in code, filenames, server names, user ID), stay with the basic English-derived lettering system, and follow my previous rules; especially, avoid the use of blanks, and replace those with underlines to separate words in file or variable names. Put fancy text into labels. A label might display "funny" on a remote system, but it won't crash your program, or cause files to be un-openable.&lt;/P&gt;
&lt;P&gt;If you follow these rules, somebody from the other side of the world will always be able to help you with technical issues over a remote access connection.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669865#M201003</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-16T12:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669866#M201004</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first one was created through SAS Enterprise Guide, under Files Section (New Folder and then renamed to "Histórico"). After we created through SAS Enterprise Guide, we validate using PuTTY and we discovered that the folder created appears as "&lt;SPAN&gt;HistÃ³rico". Using the same user, but through PuTTY interface, we create a new folder&amp;nbsp;using mkdir command, in this case the folder created appears as " Histórico".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669866#M201004</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-07-16T12:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669867#M201005</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51532"&gt;@LeonidBatkhan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On sasv9.cfg ENCODING settings is already as LATIN1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669867#M201005</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-07-16T12:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669870#M201006</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you are correct but some business user uses latin characters on folders and files, even when we tried to suggest to not to use. Our previous SAS server was Linux, so we have a lot of files and folders with this situation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669870#M201006</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-07-16T12:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669880#M201012</link>
      <description>&lt;P&gt;The change needs to be made in &lt;EM&gt;sasconf&lt;/EM&gt;/Lev1/SASApp/sasv9_usermods.cfg, after which your SAS services need to be restarted.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 13:30:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/669880#M201012</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-16T13:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670010#M201077</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;is so much more dedicated than I am!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My "IT is still a mess" looks lazy now, compared to his detailed comments! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Bottom line: Different systems use different character representations, and until all systems use the same one (UTF-8 seems to be becoming the new standard, but &lt;A href="https://en.wikipedia.org/wiki/Unicode_in_Microsoft_Windows" target="_self"&gt;Windows is very late to the party&lt;/A&gt;), this issue is unavoidable.&lt;/P&gt;
&lt;P&gt;One system writes something using encoding A, another system expects encoding B, and wheels come to a stop.&lt;/P&gt;
&lt;P&gt;Maybe in 20 years all systems and all legacy data will be UTF-8 (here is wishful thinking), and we'll breathe easier.&lt;/P&gt;
&lt;P&gt;Two thoughts:&lt;/P&gt;
&lt;P&gt;1. As far as I know, Solaris's default encoding is UTF-8. Why do you have&amp;nbsp;&lt;EM&gt;latin&lt;/EM&gt;&amp;nbsp;folder names? I wonder if Putty is confusing things here. What do you use it for?&lt;/P&gt;
&lt;P&gt;2. Run&amp;nbsp; &amp;nbsp; &lt;FONT face="courier new,courier"&gt;proc options group=languagecontrol; run;&amp;nbsp;&lt;/FONT&gt; &amp;nbsp; to see what encoding is set for the SAS session.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 22:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670010#M201077</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-16T22:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670175#M201141</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follows the results of proc options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Group=LANGUAGECONTROL
 DATESTYLE=MDY     Specifies the sequence of month, day, and year when ANYDTDTE, ANYDTDTM, or ANYDTTME informat data is ambiguous.
 DFLANG=ENGLISH    Specifies the language for international date informats and formats.
 DSCAS             Runs the DATA step on the CAS server.
 EXTENDOBSCOUNTER=YES
                   Specifies whether to extend the maximum number of observations in a new SAS data file.
 LOCALEDATA=SASLOCALE
                   Specifies the location of the locale database.
 NOLOGLANGCHG      Disables changing the language of the SAS log when the LOCALE= option is changed.
 NOLOGLANGENG      Write SAS log messages based on the values of the LOGLANGCHG, LSWLANG=, and LOCALE= options when SAS started.
 LSWLANG=LOCALE    Specifies the language for SAS log and ODS messages when the LOCALE= option is set after SAS starts.
 MAPEBCDICTOASCII= Specifies the transcoding table that is used to convert characters from ASCII to EBCDIC and EBCDIC to ASCII.
 NONLDECSEPARATOR  Disables formatting of numeric output using the decimal separator for the locale.
 NOODSLANGCHG      Disables changing the language of the SAS message text in ODS output when the LOCALE option is set after start 
                   up.
 PAPERSIZE=LETTER  Specifies the paper size to use for printing.
 RSASIOTRANSERROR  Displays a transcoding error when illegal values are read from a remote application.
 TIMEZONE="GMT-03:00"
                   Specifies a time zone.
 TRANTAB=(lat1wlt1,wlt1lat1,lat1_ucs,lat1_lcs,lat1_ccl,,,)
                   Specifies the translation table catalog entries.
 URLENCODING=SESSION
                   Specifies whether the argument to the URLENCODE function and to the URLDECODE function is interpreted using the 
                   SAS session encoding or UTF-8 encoding.
 NODBCS            Disables double-byte character sets.
 DBCSLANG=NONE     Specifies a double-byte character set language.
 DBCSTYPE=NONE     Specifies the encoding method that is used for a double-byte character set.
2                                                          The SAS System                              17:48 Thursday, July 16, 2020

 FSDBTYPE=DEFAULT  Specifies a full-screen double-byte character set (DBCS) encoding method.
 FSIMM=            Specifies input method modules (IMMs) for full-screen double-byte character sets (DBCS).
 FSIMMOPT=         Specifies options for input method modules (IMMs) that are used with a full-screen double-byte character set 
                   (DBCS).
 ENCODING=LATIN1   Specifies the default character-set encoding for the SAS session.
 LOCALE=EN_US      Specifies a set of attributes in a SAS session that reflect the language, local conventions, and culture for a 
                   geographical region.
 NONLSCOMPATMODE   Encodes data using the SAS session encoding.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 17:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670175#M201141</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-07-17T17:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670177#M201142</link>
      <description>&lt;P&gt;An additional comment, the results of PROC OPTIONS for Linux (on Linux works fine) environment is exactly the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 17:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670177#M201142</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-07-17T17:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670194#M201147</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36451"&gt;@MariaD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first one was created through SAS Enterprise Guide, under Files Section (New Folder and then renamed to "Histórico"). After we created through SAS Enterprise Guide, we validate using PuTTY and we discovered that the folder created appears as "&lt;SPAN&gt;HistÃ³rico". Using the same user, but through PuTTY interface, we create a new folder&amp;nbsp;using mkdir command, in this case the folder created appears as " Histórico".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;By PUTTY do you mean that you used that software to open a terminal window on your unix system and typed the unix command mkdir at the command prompt? What encoding was your terminal window using?&amp;nbsp; What happens if you use SAS command to make the directory?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile 'mkdir /path with non 7bit ascii letters' pipe;
  input;
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Jul 2020 19:13:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670194#M201147</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-17T19:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670218#M201153</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follows the results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: The infile 'mkdir /path/test' is:
      Pipe command="mkdir /path/test"

NOTE: 0 records were read from the infile 'mkdir /path/test'.
NOTE: DATA statement used (Total process time):
      real time           0.08 seconds
      cpu time            0.01 seconds&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;By terminal, such PuTTY or command, folder or files with special characters are created find and we can navigate through it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One more point, we can't see SAS tables with special characters on name under LIBNAME. We know this is not the best practices, but sometimes our business users create this type of file too.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 20:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670218#M201153</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-07-17T20:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670242#M201160</link>
      <description>&lt;P&gt;Here is my best guess, a stab in the dark really.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Findings &amp;amp; facts so far (you haven't replied to some questions):&lt;/P&gt;
&lt;P&gt;- Solaris should use UTF-8&lt;/P&gt;
&lt;P&gt;- Putty should use UTF-8&lt;/P&gt;
&lt;P&gt;- The folder name is displayed correctly in Putty, which makes sense as they use the same encoding: The folder name uses UTF-8 too.&lt;/P&gt;
&lt;P&gt;- SAS uses wlatin1 for its data&lt;/P&gt;
&lt;P&gt;- Because SAS is aware of the underlying OS, is reads the folder name correctly, using UTF-8 (1)&lt;/P&gt;
&lt;P&gt;- A new folder is created by SAS (&lt;STRONG&gt;please confirm you have 2 folders&lt;/STRONG&gt;) when you run SAS code (2)&lt;/P&gt;
&lt;P&gt;- This new folder has a name that is not interpreted as UTF-8 by Solaris and Putty for some reason. We don't know why (3).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=&amp;gt; There are still&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;many gaps in our establishing the facts. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;One logical answer would be to set SAS to use UTF-8 so everything is coherent.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;UTF-8 seems to be the new emerging standard anyway, so moving there is desirable.&lt;/P&gt;
&lt;P&gt;Can you try that to see if it fixes this one issue?&lt;/P&gt;
&lt;P&gt;Note that some data might need translating. SAS can do that on the fly using CEDA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(1) The&amp;nbsp; folder name is displayed correctly:&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;26         libname test '/usuarios/nuevo_usuario/Histórico';
NOTE: Libref TEST was successfully assigned as follows: 
      Engine:        V9 
      Physical Name: /usuarios/nuevo_usuario/Histórico&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(2) I don't see why a new folder should ever be created when running a data step.&lt;/P&gt;
&lt;P&gt;The creation may be linked to the LIBNAME statement instead, provided option&amp;nbsp;&lt;SPAN&gt;DLCREATEDIR&amp;nbsp; is turned on.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please confirm when the folder is created.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(3) You could look at the folder name using an hex editor to see each individual byte, and see why a seemingly legal UTF-8&amp;nbsp;&lt;SPAN&gt;byte sequence is not combined.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 00:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670242#M201160</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-18T00:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670624#M201349</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find my comments below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Solaris should use UTF-8 -- &lt;FONT color="#FF0000"&gt;It's UTF 8&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;- Putty should use UTF-8 --&amp;nbsp;&lt;FONT color="#FF0000"&gt;It's UTF 8&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;- SAS uses wlatin1 for its data --&amp;nbsp;&lt;FONT color="#FF0000"&gt;Yes, on our previous environment (Linux) was already setting as WLATIN1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;- A new folder is created by SAS (&lt;STRONG&gt;please confirm you have 2 folders&lt;/STRONG&gt;) when you run SAS code (2) --&amp;nbsp;&lt;FONT color="#FF0000"&gt;No, the folder is not created when run the libname statement. One of the&amp;nbsp;folders, the corrected one, was created using mkdir through PuTTY. The&amp;nbsp;other one, was created&amp;nbsp;through SAS EG under Server --&amp;gt; Files --&amp;gt; New Folder. The last one, appears as " HistÃ³rico".&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;- This new folder has a name that is not interpreted as UTF-8 by Solaris and Putty for some reason. We don't know why (3).&amp;nbsp;-- &lt;FONT color="#FF0000"&gt;In fact, SAS does not interpret the corrected name, "Histórico", for folders and for SAS datasets too. On Solaris or PuTTY, we can navigate&amp;nbsp;through folders&amp;nbsp;without any problem.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Can you try that to see if it fixes this one issue? -- &lt;FONT color="#FF0000"&gt;I'll make a test. But in our previous environment (Linux) we have exactly the same configuration and works fine on it. &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Note that some data might need translating. SAS can do that on the fly using CEDA. --&lt;FONT color="#FF0000"&gt; Yes, we use a CPORT procedure to translate from Linux to Solaris.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Follows an example to&amp;nbsp;visualise&amp;nbsp;what is going on.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Case 1: &amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;a) I created a folder called "Histórico" through PuTTY.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2020-07-20 at 09.37.51.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47324iA045192636219731/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-07-20 at 09.37.51.png" alt="Screen Shot 2020-07-20 at 09.37.51.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;b) I'll try to&amp;nbsp;assign a libname TEST using the folder "Histórico" on SAS EG.&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;25         GOPTIONS ACCESSIBLE;
26         libname TEST '/usaurios/sasdemo/Histórico';
NOTE: Library TEST does not exist.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Case 2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;a) I deleted the&amp;nbsp;previous folder created. I created again a folder called "Histórico" but now through SAS EG (Server --&amp;gt; Files --&amp;gt; New Folder). If I&amp;nbsp;navigate to the folder using PuTTY, now the folders&amp;nbsp;appears as "HistÃ³rico"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2020-07-20 at 09.36.36.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47325iAF137A6202604868/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-07-20 at 09.36.36.png" alt="Screen Shot 2020-07-20 at 09.36.36.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;b) I run the same libname statement and now the libname is&amp;nbsp;assigned.&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;25         GOPTIONS ACCESSIBLE;
26         libname TEST '/usuarios/sasdemo/Histórico';
NOTE: Libref TEST was successfully assigned as follows: 
      Engine:        V9 
      Physical Name: /export/home/sasdemo/Histórico&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Regards,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Regards,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 12:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670624#M201349</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-07-20T12:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670657#M201361</link>
      <description>&lt;P&gt;What happens if you use the DCREATE() function?&lt;/P&gt;
&lt;P&gt;Is the directory accessible through the LIBNAME statement?&lt;/P&gt;
&lt;P&gt;How is it displayed in putty?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your description, I now have the suspicion that EG and SAS use UTF-8 encoding when sending the name to the filesystem, but putty recognizes the two-byte UTF sequence as two separate WLATIN characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have legacy directories that were created on the Linux system and then either mounted to your Solaris server, or copied through NFS? If yes, how do those display in EG and putty?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you determine that the Solaris server is configured to use UTF?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 14:02:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670657#M201361</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-20T14:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris | Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670685#M201365</link>
      <description>&lt;P&gt;First step is to run SAS using UTF-8 encoding.&amp;nbsp; This has to be set when the SAS session starts, you cannot change it later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then try making a file or directory using some non-7 bit ASCII character, like your example o with accent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then try seeing what the name looks like in the filesystem.&amp;nbsp; For example you might try reading the output of the LS command.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  infile
"cd /usuarios/nuevo_usuario/
;ls -d His*
"  pipe truncover ;
   input filename $30. ;
   put _n_= filename=  +1 filename $hex60. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you should be able to see the names of the two different His... directories and the actual character codes.&lt;/P&gt;
&lt;P&gt;Here is my attempt to see the difference in what bytes that name has when using UTF-8 vs LATIN encoding by running the same data step in two different SAS sessions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Notice how just pasting the UTF-8 text into this forum causes the UTF-8 character to be interpreted as two independent non-7bit ASCII characters.&lt;/EM&gt;&lt;/P&gt;
&lt;PRE&gt;22    data _null_;
23      length encoding name $20;
24      encoding=getoption('encoding');
25      name = 'HistÃ³rico';
26      len=length(name);
27      klen=klength(name);
28      put (_all_) (=) / name $hex. ;
29    run;

encoding=UTF-8 name=HistÃ³rico len=10 klen=9
48697374C3B37269636F20202020202020202020

1317  data _null_;
1318    length encoding name $20;
1319    encoding=getoption('encoding');
1320    name = 'Histórico';
1321    len=length(name);
1322    klen=klength(name);
1323    put (_all_) (=) / name $hex. ;
1324  run;

encoding=WLATIN1 name=Histórico len=9 klen=9
48697374F37269636F2020202020202020202020
&lt;/PRE&gt;
&lt;P&gt;So when using UTF-8 the character is coded as&amp;nbsp;C3 B3 and when running WLATIN1 the character is coded as&amp;nbsp;F3.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 14:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solaris-Encoding/m-p/670685#M201365</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-20T14:55:39Z</dc:date>
    </item>
  </channel>
</rss>

