<?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 Importing Excel file in SAS having special character in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/586711#M167492</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to import Excel file using 2 different program and also tried using SAS import wizard but non of them help me out :&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Program 1:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="W:\auto\Trial.xlsx"
		out = T dbms = xlsx ;
		sheet="TI";
		getnames=yes;	
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;gives all observation but warning message in log :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Some character data was lost during transcoding in column: IETEST at obs 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Program 2:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sur pcfiles path="W:\auto\Trial.xlsx" ;

data ag;
	set sur.'Ti$'n;
  run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Both of the program are not able to read "&lt;SPAN&gt;β&lt;/SPAN&gt;" (Beta-symbol) and superscript number come to base.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to deal with importing "xlsx" without changing special character.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample excel data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 07 Sep 2019 04:16:22 GMT</pubDate>
    <dc:creator>surajmetha55</dc:creator>
    <dc:date>2019-09-07T04:16:22Z</dc:date>
    <item>
      <title>Importing Excel file in SAS having special character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/586711#M167492</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to import Excel file using 2 different program and also tried using SAS import wizard but non of them help me out :&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Program 1:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="W:\auto\Trial.xlsx"
		out = T dbms = xlsx ;
		sheet="TI";
		getnames=yes;	
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;gives all observation but warning message in log :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Some character data was lost during transcoding in column: IETEST at obs 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Program 2:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sur pcfiles path="W:\auto\Trial.xlsx" ;

data ag;
	set sur.'Ti$'n;
  run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Both of the program are not able to read "&lt;SPAN&gt;β&lt;/SPAN&gt;" (Beta-symbol) and superscript number come to base.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to deal with importing "xlsx" without changing special character.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample excel data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2019 04:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/586711#M167492</guid>
      <dc:creator>surajmetha55</dc:creator>
      <dc:date>2019-09-07T04:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel file in SAS having special character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/586714#M167494</link>
      <description>Try 'getnames=no' to see if the data will come in at all.  I often do this to bring data in as text that I can then manipulate more freely.</description>
      <pubDate>Fri, 06 Sep 2019 11:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/586714#M167494</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-09-06T11:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel file in SAS having special character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/586935#M167566</link>
      <description>&lt;P&gt;Thank you for replay. Trying '&lt;SPAN&gt;getnames=no&lt;/SPAN&gt;' just changed Variable name. Do you bring data text manually or programaticaly, if yes can you share program or give some hint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even I tried using SAS import wizard but it is also not helping me out.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2019 04:09:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/586935#M167566</guid>
      <dc:creator>surajmetha55</dc:creator>
      <dc:date>2019-09-07T04:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel file in SAS having special character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/587219#M167697</link>
      <description>Yes, it does, but you can rename the variables based on whatever row you have the column names in.  Also, since they all come in as text, you can test whether they successfully convert to numbers or dates.</description>
      <pubDate>Mon, 09 Sep 2019 13:04:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/587219#M167697</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-09-09T13:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel file in SAS having special character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/587223#M167699</link>
      <description>Also, this might help you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Import-data-from-MS-access-Excel-while-retaining-special/m-p/352237#M82077" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Import-data-from-MS-access-Excel-while-retaining-special/m-p/352237#M82077&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Sep 2019 13:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/587223#M167699</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-09-09T13:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel file in SAS having special character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/587362#M167760</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237008"&gt;@surajmetha55&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to import Excel file using 2 different program and also tried using SAS import wizard but non of them help me out :&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Program 1:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="W:\auto\Trial.xlsx"
		out = T dbms = xlsx ;
		sheet="TI";
		getnames=yes;	
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;gives all observation but warning message in log :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Some character data was lost during transcoding in column: IETEST at obs 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Program 2:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sur pcfiles path="W:\auto\Trial.xlsx" ;

data ag;
	set sur.'Ti$'n;
  run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Both of the program are not able to read "&lt;SPAN&gt;β&lt;/SPAN&gt;" (Beta-symbol) and superscript number come to base.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to deal with importing "xlsx" without changing special character.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample excel data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You might try changing your SAS session encoding to UTF-8. If your SAS session encoding is already UTF-8 then I'm not sure why you are having the issue unless proc import is somehow treating the file as having Latin encoding.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 20:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-in-SAS-having-special-character/m-p/587362#M167760</guid>
      <dc:creator>DWilson</dc:creator>
      <dc:date>2019-09-09T20:56:33Z</dc:date>
    </item>
  </channel>
</rss>

