<?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 IMPORT: Unknown characters, Unicode problem maybe in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766224#M242818</link>
    <description>It's even worse. Everything crashed, and the output was just one column.&lt;BR /&gt;Thank you for your response.</description>
    <pubDate>Mon, 06 Sep 2021 13:17:38 GMT</pubDate>
    <dc:creator>webart999ARM</dc:creator>
    <dc:date>2021-09-06T13:17:38Z</dc:date>
    <item>
      <title>PROC IMPORT: Unknown characters, Unicode problem maybe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766222#M242816</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Dear community,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;I am here with another unknown problem, I am facing this first time.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Hope your wise advice could help me.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Here is the part of xlsx file I am importing&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMPORT ISSUE.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63327iEDF45522A56D4F86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMPORT ISSUE.PNG" alt="IMPORT ISSUE.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Here is the import syntax I am using&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="2"&gt;&lt;CODE class=" language-sas"&gt;proc import out =aexls datafile='xxxxxxxxxxxxxxxxxxxxxxxx/AESI.xlsx'
                   dbms=xlsx replace;
                   getnames = no;
run;&lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Here is the&amp;nbsp;&lt;STRONG&gt;aexls&amp;nbsp;&lt;/STRONG&gt;dataset.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMPORT ISSUE1.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63329i3B0BE99FFBF82108/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMPORT ISSUE1.PNG" alt="IMPORT ISSUE1.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;I have no idea how these characters are appearing.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;I don't want to remove them with hardcoding.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Could you please suggest any turnaround here?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;And here is the log.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Which is fine I think.&lt;/FONT&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMPORT ISSUE2.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63330i705790B22D636DC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMPORT ISSUE2.PNG" alt="IMPORT ISSUE2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Thank you all in advance.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Kind Regards&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Artur&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 13:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766222#M242816</guid>
      <dc:creator>webart999ARM</dc:creator>
      <dc:date>2021-09-06T13:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT: Unknown characters, Unicode problem maybe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766223#M242817</link>
      <description>Save that XLSX file into CSV file and import this CSV  file via PROC IMPORT  ?</description>
      <pubDate>Mon, 06 Sep 2021 13:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766223#M242817</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-09-06T13:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT: Unknown characters, Unicode problem maybe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766224#M242818</link>
      <description>It's even worse. Everything crashed, and the output was just one column.&lt;BR /&gt;Thank you for your response.</description>
      <pubDate>Mon, 06 Sep 2021 13:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766224#M242818</guid>
      <dc:creator>webart999ARM</dc:creator>
      <dc:date>2021-09-06T13:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT: Unknown characters, Unicode problem maybe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766228#M242820</link>
      <description>&lt;P&gt;What encoding is your SAS session using?&amp;nbsp; Check the automatic macro variable SYSENCODING or the system option ENCODING.&lt;/P&gt;
&lt;P&gt;Note that you cannot change the encoding once SAS is running. You need to specify that setting when SAS starts.&amp;nbsp; Typically by using a different command to start SAS. (Or if you are running SAS via some user interface like Enterprise Guide or SAS/Studio then connecting to a different "application server" that is using the encoding you want.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 14:27:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766228#M242820</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-06T14:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT: Unknown characters, Unicode problem maybe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766229#M242821</link>
      <description>&lt;P&gt;Thanks for your reply Tom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Value of automatic macro variable &amp;amp;SYSENCODING. is&amp;nbsp;&lt;STRONG&gt;latin1&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 14:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766229#M242821</guid>
      <dc:creator>webart999ARM</dc:creator>
      <dc:date>2021-09-06T14:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT: Unknown characters, Unicode problem maybe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766231#M242822</link>
      <description>&lt;P&gt;A single byte encoding, like LATIN1, can only represent 256 distinct characters.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Try importing the file using a SAS session that is using UTF-8 encoding.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If you are using a Windows icon to run SAS then you should have a version that launches SAS with "UNICODE" support. That will be using UTF-8 encoding.&amp;nbsp; If you are running SAS from the command line check if your local installation team has created a different command to use that starts SAS with unicode support.&amp;nbsp; For example instead of sas as the command you might need to use sas_u8.&amp;nbsp; If you are using Enterprise Guide or SAS/Studio then connect to a different application server that has SAS configured to use UTF-8.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 14:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766231#M242822</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-06T14:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT: Unknown characters, Unicode problem maybe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766237#M242826</link>
      <description>&lt;P&gt;Do those other values in the XLSX with the "funny characters" appear not to be on the first (top) line of the cell when examined using the formula window? Your 187 appears to be pushed down a line. Which makes me suspect that odd stuff is the result of something equivalent to the "alt-Enter" key behavior of inserting line breaks in the cell or similar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do a File-Save As to a CSV format and then examine the file with a TEXT editor like Notepad to see if the random characters appear there as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to discovering yet another reason why XLSX files are often poor choice for data interchange between systems.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 16:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766237#M242826</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-06T16:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT: Unknown characters, Unicode problem maybe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766240#M242827</link>
      <description>&lt;P&gt;Thank you all for your suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution(temporary) was to convert .xlsx to .xls format.&lt;BR /&gt;After that using the same import procedure the excess characters were gone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Artur&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 16:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766240#M242827</guid>
      <dc:creator>webart999ARM</dc:creator>
      <dc:date>2021-09-06T16:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT: Unknown characters, Unicode problem maybe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766298#M242854</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; I have no idea how these characters are appearing.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;They are here because they are in Excel before the 187.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisNZ_0-1630979161819.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63339i240585DE322E90DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChrisNZ_0-1630979161819.png" alt="ChrisNZ_0-1630979161819.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either clean them in Excel or clean them in SAS after reading them (only keep digits for instance for the cell shown). For example remove the string&amp;nbsp;&lt;STRONG&gt;&amp;amp;#0x00a0;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;Or remove anything starting with&amp;nbsp;&lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt; and ending with&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 01:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-Unknown-characters-Unicode-problem-maybe/m-p/766298#M242854</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-09-07T01:51:53Z</dc:date>
    </item>
  </channel>
</rss>

