<?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: Reading excel file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487518#M127058</link>
    <description>Yes it has to be character</description>
    <pubDate>Thu, 16 Aug 2018 17:19:33 GMT</pubDate>
    <dc:creator>tabraz</dc:creator>
    <dc:date>2018-08-16T17:19:33Z</dc:date>
    <item>
      <title>Reading excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487491#M127050</link>
      <description>&lt;P&gt;I am am trying to read excel file in sas with both (character and numeric values).But its not working the way it should as row with decimal values .07 is getting converted to 7.0000000000000007E-2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;22&amp;nbsp;7.0000000000000007E-2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC IMPORT&lt;BR /&gt;DATAFILE="C:\Users\txxx\Desktop\Data\7777.xlsx"&lt;BR /&gt;OUT=Result&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me on this?attached output file and&amp;nbsp; source file&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 16:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487491#M127050</guid>
      <dc:creator>tabraz</dc:creator>
      <dc:date>2018-08-16T16:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487505#M127051</link>
      <description>There's nothing wrong with the import you need to change the format to see it without exponential format, but you also need to understand numerical precision. Basically, computers can't necessarily handle information as accurately as we think....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#p0ji1unv6thm0dn1gp4t01a1u0g6.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#p0ji1unv6thm0dn1gp4t01a1u0g6.htm&lt;/A&gt;</description>
      <pubDate>Thu, 16 Aug 2018 16:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487505#M127051</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-16T16:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487506#M127052</link>
      <description>&lt;P&gt;See if this helps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Proc-import-XLSX-NOW-reading-numbers-correctly/td-p/426483" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/Proc-import-XLSX-NOW-reading-numbers-correctly/td-p/426483&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 16:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487506#M127052</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2018-08-16T16:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487508#M127053</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;The column TEST1 was imported as a CHARACTER type because some cells contain the value "NR".&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Do you really want TEST1 to be CHARACTER type?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 16:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487508#M127053</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-08-16T16:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487518#M127058</link>
      <description>Yes it has to be character</description>
      <pubDate>Thu, 16 Aug 2018 17:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487518#M127058</guid>
      <dc:creator>tabraz</dc:creator>
      <dc:date>2018-08-16T17:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487521#M127061</link>
      <description>&lt;P&gt;You can experiment with something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import
  datafile='C:\Users\txxx\Desktop\Data\7777.xlsx'
  out=work.result1
  dbms=xlsx
  replace;
  getnames=yes;
run; quit;

data work.result2;
set work.result1;
length test1_numeric 8;
drop test1_numeric;
if (lowcase(test1) not in ('nr', 'ns')) then do;
  test1_numeric = input(test1, e32.);
  test1 = strip(put(test1_numeric, best.));
end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Vince DelGobbo&lt;/P&gt;
&lt;P&gt;SAS R&amp;amp;D&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 17:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487521#M127061</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-08-16T17:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487645#M127088</link>
      <description>&lt;P&gt;Thanks for your work however there are many different types of charters with many combination.We cant list all characters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 07:05:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487645#M127088</guid>
      <dc:creator>tabraz</dc:creator>
      <dc:date>2018-08-17T07:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487811#M127123</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;You can experiment with something like this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import
  datafile='C:\Users\txxx\Desktop\Data\7777.xlsx'
  out=work.result1
  dbms=xlsx
  replace;
  getnames=yes;
run; quit;

data work.result2;
set work.result1;
length test1_numeric 8;
drop test1_numeric;
test1_numeric = input(test1, ?? comma32.);
if (test1_numeric  ne .) 
  then test1 = strip(put(test1_numeric, best.));
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 15:23:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/487811#M127123</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-08-17T15:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/488156#M127233</link>
      <description>&lt;P&gt;Thanks for your time and effort&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 11:22:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file/m-p/488156#M127233</guid>
      <dc:creator>tabraz</dc:creator>
      <dc:date>2018-08-20T11:22:20Z</dc:date>
    </item>
  </channel>
</rss>

