<?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 &amp;quot;Some character data was lost during transcoding in column&amp;quot; in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-import-quot-Some-character-data-was-lost-during-transcoding/m-p/305867#M20737</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50126"&gt;@claudiajc&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I don't have the option to change the content or type (xlsx) of the spreadsheet.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Of course you have the option. Even if you don't have Excel installed, LibreOffice is available on all common platforms and can be used to convert the excel dungheap into a nice .csv.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Excel files are NOT, I repeat, NOT suited for proper transfer of tabular data.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2016 05:50:29 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-10-20T05:50:29Z</dc:date>
    <item>
      <title>proc import "Some character data was lost during transcoding in column"</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-import-quot-Some-character-data-was-lost-during-transcoding/m-p/305797#M20725</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to import an xlsx document with a cell containing a string that includes "greater than"&amp;nbsp;("&lt;SPAN&gt; ≥&lt;/SPAN&gt;")&amp;nbsp;sign. I am getting the following note&lt;EM&gt; "WARNING: Some character data was lost during transcoding in column: MYVARIABLE&amp;nbsp;at obs 18.". &lt;/EM&gt;Below&amp;nbsp;is the full code. How can I remove this warning? I don't have the option to change the content or type (xlsx) of the spreadsheet. I am working in SAS 9.4 in Enterprise Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;%let specs = /path/myspreadsheet.xlsx;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC IMPORT &lt;BR /&gt;DATAFILE="&amp;amp;specs." &lt;BR /&gt;OUT=TS&lt;BR /&gt;DBMS=xlsx&lt;BR /&gt; REPLACE; &lt;BR /&gt;GETNAMES=YES; &lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Claudia&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 21:16:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-import-quot-Some-character-data-was-lost-during-transcoding/m-p/305797#M20725</guid>
      <dc:creator>claudiajc</dc:creator>
      <dc:date>2016-10-19T21:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc import "Some character data was lost during transcoding in column"</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-import-quot-Some-character-data-was-lost-during-transcoding/m-p/305815#M20726</link>
      <description>&lt;P&gt;You may be able to use the LIBNAME Excel pointed to your source.&lt;/P&gt;
&lt;P&gt;then instead of import you would have&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data ts;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set lib.sheet;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;where lib is the library name you assign and "sheet" is one of the data sets in the library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you may still have an issue if the cause is character encoding. Not changing the content or file type (I assume you mean you can't save as CSV and see if that will import) may mean that you'll never get rid of warning.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 22:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-import-quot-Some-character-data-was-lost-during-transcoding/m-p/305815#M20726</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-19T22:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc import "Some character data was lost during transcoding in column"</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-import-quot-Some-character-data-was-lost-during-transcoding/m-p/305867#M20737</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50126"&gt;@claudiajc&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I don't have the option to change the content or type (xlsx) of the spreadsheet.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Of course you have the option. Even if you don't have Excel installed, LibreOffice is available on all common platforms and can be used to convert the excel dungheap into a nice .csv.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Excel files are NOT, I repeat, NOT suited for proper transfer of tabular data.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 05:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-import-quot-Some-character-data-was-lost-during-transcoding/m-p/305867#M20737</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-20T05:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc import "Some character data was lost during transcoding in column"</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-import-quot-Some-character-data-was-lost-during-transcoding/m-p/305966#M20741</link>
      <description>&lt;P&gt;Thanks for your replies.Yes, the&lt;SPAN&gt;&amp;nbsp;warning is caused by&amp;nbsp;a character encoding issue. The original text in the xlsx file is "score ≥0.5" and the imported text in my work sas file is "score 0.5". P&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And I want to clarify I do have Microsoft Excel in my computer. (sorry, &amp;nbsp;did not explain myself well). What I cannot do is modify the xlsx file. This is because the instruction I was given is to import that particular file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 15:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-import-quot-Some-character-data-was-lost-during-transcoding/m-p/305966#M20741</guid>
      <dc:creator>claudiajc</dc:creator>
      <dc:date>2016-10-20T15:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc import "Some character data was lost during transcoding in column"</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-import-quot-Some-character-data-was-lost-during-transcoding/m-p/305974#M20742</link>
      <description>&lt;P&gt;I just had to go through this wonderful process...what a pain!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No guarantees, but hopefully this will get you going.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, you need to figure out how your spreadsheet is encoded. My source data wasn't a spreadsheet, but I think this will work. In Excel, do File | Save As | click More options | click Tools | click Web options | click Encoding. Hopefully, this will show you what your spreadsheed is stored with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once I knew this, and had my data imported, running this fixed my up (in my case the data was UTF-8).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* Set the encoding of the dataset to utf-8 */&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;datasets&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;lib&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=work &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nolist&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;modify&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;indata / &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CORRECTENCODING&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'utf-8'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Tom&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 15:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-import-quot-Some-character-data-was-lost-during-transcoding/m-p/305974#M20742</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2016-10-20T15:23:29Z</dc:date>
    </item>
  </channel>
</rss>

