<?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: read 64bit excel file using 9.2 32bit in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333337#M272141</link>
    <description>&lt;P&gt;Thank you Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm in a &amp;nbsp;situation in which I can't convert these files to another format.&lt;/P&gt;
&lt;P&gt;Do you know the name of the product you're saying is not licensed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 11:21:27 GMT</pubDate>
    <dc:creator>scan</dc:creator>
    <dc:date>2017-02-16T11:21:27Z</dc:date>
    <item>
      <title>read 64bit excel file using 9.2 32bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333318#M272137</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to read an excel file (xls or xlsx) generated with Excel 64 bit using SAS 9.2 32bit, with poor results.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Basically I googled some information about this specific task, but I end up finding information only related to the inverse problem that could be easily solved with the package SAS PC FILES SERVER&amp;nbsp;(reading 32bit documents with SAS 64 bit), using as engine EXCELCS or other.&lt;BR /&gt;I actually own the&amp;nbsp;&lt;SPAN&gt;SAS PC &lt;/SPAN&gt;&lt;SPAN&gt;FILES SERVER and it seems it is correctly installed and working on my SAS machine, running the proc setinit.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But this seems unable to solve the problem described in this topic.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any solution?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Many thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 09:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333318#M272137</guid>
      <dc:creator>scan</dc:creator>
      <dc:date>2017-02-16T09:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: read 64bit excel file using 9.2 32bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333321#M272138</link>
      <description>&lt;P&gt;Which steps have you tried, and what were the log responses to your code?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 09:55:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333321#M272138</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-16T09:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: read 64bit excel file using 9.2 32bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333325#M272139</link>
      <description>&lt;P&gt;thank you Kurt for your interest,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried many engines, as well as the internal guided procedure for import but the log response is:&lt;BR /&gt;&lt;BR /&gt;ERROR: Connect: Class not registered&lt;/P&gt;
&lt;P&gt;ERROR: Error in the LIBNAME&amp;nbsp;statement.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 10:25:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333325#M272139</guid>
      <dc:creator>scan</dc:creator>
      <dc:date>2017-02-16T10:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: read 64bit excel file using 9.2 32bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333333#M272140</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40098"&gt;@scan&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;thank you Kurt for your interest,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried many engines, as well as the internal guided procedure for import but the log response is:&lt;BR /&gt;&lt;BR /&gt;ERROR: Connect: Class not registered&lt;/P&gt;
&lt;P&gt;ERROR: Error in the LIBNAME&amp;nbsp;statement.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That usually comes from a missing (not installed) or non-licensed module.&lt;/P&gt;
&lt;P&gt;The most stable way to import data from Excel is to save from Excel to a text-based format and read that with a data step.&lt;/P&gt;
&lt;P&gt;Advantages:&lt;/P&gt;
&lt;P&gt;Saved data can be inspected with a simple text editor&lt;/P&gt;
&lt;P&gt;No licenses beyond Base SAS needed&lt;/P&gt;
&lt;P&gt;Will work with future Excel versions, no matter what the idiots in Redmond cobble together&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 10:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333333#M272140</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-16T10:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: read 64bit excel file using 9.2 32bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333337#M272141</link>
      <description>&lt;P&gt;Thank you Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm in a &amp;nbsp;situation in which I can't convert these files to another format.&lt;/P&gt;
&lt;P&gt;Do you know the name of the product you're saying is not licensed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 11:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333337#M272141</guid>
      <dc:creator>scan</dc:creator>
      <dc:date>2017-02-16T11:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: read 64bit excel file using 9.2 32bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333349#M272142</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40098"&gt;@scan&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm in a &amp;nbsp;situation in which I can't convert these files to another format.&lt;/P&gt;
&lt;P&gt;Do you know the name of the product you're saying is not licensed?&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;Open with Excel, File - Save As, select csv as file type.&lt;/P&gt;
&lt;P&gt;If you don't have Excel, the free Libreoffice will do the trick.&lt;/P&gt;
&lt;P&gt;As for the product, it is SAS/ACCESS to PC Files&lt;/P&gt;
&lt;P&gt;Since you're still on 9.2, the xlsx format may not be supported yet.&lt;/P&gt;
&lt;P&gt;Which operating system is SAS running on?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 12:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333349#M272142</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-16T12:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: read 64bit excel file using 9.2 32bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333378#M272143</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OS is W7,&amp;nbsp;&lt;SPAN&gt;SAS/ACCESS to PC Files is present according to the setinit.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Neither the xsl without the x can be imported, if it is generated with a 64bit excel framework.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any solution?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 14:09:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333378#M272143</guid>
      <dc:creator>scan</dc:creator>
      <dc:date>2017-02-16T14:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: read 64bit excel file using 9.2 32bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333407#M272144</link>
      <description>&lt;P&gt;If you have the IML interface to R you should be able to paste theis code into IML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* create a 32 bit excel workbook with sheet have;
%utlfkil(d:/xls/have.xlsx); * delete if exists;
libname xel "d:/xls/have.xlsx";
data xel.have;
  set sashelp.class;
run;quit;
libname xel clear;


* import 32bit sheet have;
%utl_submit_r64('&lt;BR /&gt;library(rio);
library(foreign);
have &amp;lt;-import("d:/xls/have.xlsx");
write.dta(have, "d:/dta/want.dta");
');

* import to SAS;
proc import out=want file='d:\dta\want.dta' replace;
;run;quit;

proc print data=want;
run;quit;

Obs    NAME       SEX    AGE    HEIGHT    WEIGHT

  1    Alfred      M      14     69.0      112.5
  2    Alice       F      13     56.5       84.0
  3    Barbara     F      13     65.3       98.0
  4    Carol       F      14     62.8      102.5
  5    Henry       M      14     63.5      102.5
  6    James       M      12     57.3       83.0
  7    Jane        F      12     59.8       84.5
  8    Janet       F      15     62.5      112.5
  9    Jeffrey     M      13     62.5       84.0
 10    John        M      12     59.0       99.5
 11    Joyce       F      11     51.3       50.5
 12    Judy        F      14     64.3       90.0
 13    Louise      F      12     56.3       77.0
 14    Mary        F      15     66.5      112.0
 15    Philip      M      16     72.0      150.0
 16    Robert      M      12     64.8      128.0
 17    Ronald      M      15     67.0      133.0
 18    Thomas      M      11     57.5       85.0
 19    William     M      15     66.5      112.0





&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:06:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333407#M272144</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-02-16T15:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: read 64bit excel file using 9.2 32bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333409#M272145</link>
      <description>&lt;P&gt;It should also work with 32bit SAS and 64 or 32 bit excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SOAPBOX ON&lt;/P&gt;
&lt;P&gt;I wish SAS would stop promoting 32bit SAS, I think SAS stopped promoting 16bit WIn31 SAS?&lt;/P&gt;
&lt;P&gt;SOAPBOX OFF&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333409#M272145</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-02-16T15:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: read 64bit excel file using 9.2 32bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333418#M272146</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Show the code you used and the log.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333418#M272146</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-16T15:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: read 64bit excel file using 9.2 32bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333424#M272147</link>
      <description>&lt;P&gt;no IML interface to R here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll post the code in a while, but I've just generated a simple xls document with excel 64 and tried the guided procedure to import.&lt;/P&gt;
&lt;P&gt;Then I tried a lot of different engines found on the web such as excelcs excel xls and so on. The log was always the same as reported some post ago.&lt;BR /&gt;Will return here in a while, anyway.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333424#M272147</guid>
      <dc:creator>scan</dc:creator>
      <dc:date>2017-02-16T15:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: read 64bit excel file using 9.2 32bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333699#M272148</link>
      <description>&lt;P&gt;Just think of the time you already wasted trying to get the Excel file format to work. Saving to csv and importing that would have solved your problem in a moment.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 08:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-64bit-excel-file-using-9-2-32bit/m-p/333699#M272148</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-17T08:43:20Z</dc:date>
    </item>
  </channel>
</rss>

