<?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 proc import not working with xlsx files - new SAS 9.4 install - both SAS and office are 64-bit in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296279#M62017</link>
    <description>&lt;P&gt;On a new install, PROC IMPORT and EXPORT are not working for xlsx files. &amp;nbsp;Both SAS and MS Office are 64-bit. &amp;nbsp;These PROCs work on two other computers I have. &amp;nbsp;Running it on my new computer (details below) results in the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The procedure code is basic:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='C\Sample Data\xlsx data.xlsx' out=data1; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I recently installed SAS 9.4 on a Microsoft Surface Book running Windows 10. &amp;nbsp;The installed modules/versions are Base SAS 9.4_M3, SAS_STAT 14.1, SAS_GRAPH 9.4_M3, High Performance Suite&amp;nbsp;2.2_M4, and&amp;nbsp;SAS/ACCESS to PC Files 9.4_M3. &amp;nbsp;Both SAS 9.4 and Microsoft Office are 64-bit installations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code above works on the other two computers on which I have run SAS 9.4. &amp;nbsp;I haven't been able to determine what is different in the new setup that is causing the errors, unless it is simply Windows 10 (Surface book, doesn't work) versus Windows 7 (other 2 computers, works). &amp;nbsp;But I haven't found any reported issues for importing xlsx files on Windows 10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have SAS 9.4 on a Dell PC running Windows 7 (separate employer, separate SAS license). &amp;nbsp;Before I switched to the Surface Book I had an HP PC also running Windows 7. &amp;nbsp;Both of these computers had 64-bit SAS and 64-bit office, and PROC IMPORT and PROC EXPORT both worked with xlsx files. &amp;nbsp;I don't have the exact version details for these two computers right now (both are SAS 9.4), but I can get it if it will be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on what the problem might be?&lt;/P&gt;</description>
    <pubDate>Sat, 03 Sep 2016 03:31:46 GMT</pubDate>
    <dc:creator>kyleporter</dc:creator>
    <dc:date>2016-09-03T03:31:46Z</dc:date>
    <item>
      <title>proc import not working with xlsx files - new SAS 9.4 install - both SAS and office are 64-bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296279#M62017</link>
      <description>&lt;P&gt;On a new install, PROC IMPORT and EXPORT are not working for xlsx files. &amp;nbsp;Both SAS and MS Office are 64-bit. &amp;nbsp;These PROCs work on two other computers I have. &amp;nbsp;Running it on my new computer (details below) results in the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The procedure code is basic:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='C\Sample Data\xlsx data.xlsx' out=data1; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I recently installed SAS 9.4 on a Microsoft Surface Book running Windows 10. &amp;nbsp;The installed modules/versions are Base SAS 9.4_M3, SAS_STAT 14.1, SAS_GRAPH 9.4_M3, High Performance Suite&amp;nbsp;2.2_M4, and&amp;nbsp;SAS/ACCESS to PC Files 9.4_M3. &amp;nbsp;Both SAS 9.4 and Microsoft Office are 64-bit installations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code above works on the other two computers on which I have run SAS 9.4. &amp;nbsp;I haven't been able to determine what is different in the new setup that is causing the errors, unless it is simply Windows 10 (Surface book, doesn't work) versus Windows 7 (other 2 computers, works). &amp;nbsp;But I haven't found any reported issues for importing xlsx files on Windows 10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have SAS 9.4 on a Dell PC running Windows 7 (separate employer, separate SAS license). &amp;nbsp;Before I switched to the Surface Book I had an HP PC also running Windows 7. &amp;nbsp;Both of these computers had 64-bit SAS and 64-bit office, and PROC IMPORT and PROC EXPORT both worked with xlsx files. &amp;nbsp;I don't have the exact version details for these two computers right now (both are SAS 9.4), but I can get it if it will be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on what the problem might be?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 03:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296279#M62017</guid>
      <dc:creator>kyleporter</dc:creator>
      <dc:date>2016-09-03T03:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: proc import not working with xlsx files - new SAS 9.4 install - both SAS and office are 64-bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296282#M62018</link>
      <description>&lt;P&gt;Try adding DBMS=XLSX to the proc import statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 04:09:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296282#M62018</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-03T04:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc import not working with xlsx files - new SAS 9.4 install - both SAS and office are 64-bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296290#M62022</link>
      <description>&lt;P&gt;Are there any differences in the version or setup of MS Office between the computers that work and those that don't? Could there be remnants of 32-bit Office interfering?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 06:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296290#M62022</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-09-03T06:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc import not working with xlsx files - new SAS 9.4 install - both SAS and office are 64-bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296294#M62024</link>
      <description>&lt;P&gt;Also, please include exact code and log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code above has errors that may not be in your actual code or they may...&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 06:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296294#M62024</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-03T06:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc import not working with xlsx files - new SAS 9.4 install - both SAS and office are 64-bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296343#M62052</link>
      <description>&lt;P&gt;That worked, thanks! &amp;nbsp;In my other installs I didn't have to specify the DBMS; it was recognized by the file extension. &amp;nbsp;But that is an easy solution to implement, so thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 02:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296343#M62052</guid>
      <dc:creator>kyleporter</dc:creator>
      <dc:date>2016-09-04T02:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc import not working with xlsx files - new SAS 9.4 install - both SAS and office are 64-bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296345#M62054</link>
      <description>&lt;P&gt;That is possible. &amp;nbsp;Adding DBMS=xlsx worked so I'm good to go.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 02:26:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296345#M62054</guid>
      <dc:creator>kyleporter</dc:creator>
      <dc:date>2016-09-04T02:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc import not working with xlsx files - new SAS 9.4 install - both SAS and office are 64-bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296346#M62055</link>
      <description>&lt;P&gt;Thanks for the solution. &amp;nbsp;Just to be complete, I will include the full text and log below. &amp;nbsp;All of the code was in the OP, but not all of the log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='C\Sample Data\xlsx data.xlsx' out=data1; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;3
4    proc import datafile='C:\Sample Data\xlsx data.xlsx' out=data1;
4  !                                                                 run;

ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.
Connection Failed.  See log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
      real time           0.31 seconds
      cpu time            0.15 seconds&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Sep 2016 02:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/296346#M62055</guid>
      <dc:creator>kyleporter</dc:creator>
      <dc:date>2016-09-04T02:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc import not working with xlsx files - new SAS 9.4 install - both SAS and office are 64-bit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/349616#M81129</link>
      <description>&lt;P&gt;I am having the same problem. I have sas9.4 t1m4. New install on windows 8.1. MS office 64 bit, sas 64 bit.&amp;nbsp; I can't get it to work with proc import at all. I have tried writing the code and using the wizard - same errors as person who asked first with both.&amp;nbsp; OR, it "runs" w/ DBMS=xlsx and doesn't like any options "ERROR: Import unsuccessful.&amp;nbsp; See SAS Log for details"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE= "path\file.xlsx"&amp;nbsp;&amp;nbsp; &amp;nbsp;OUT= work.newsasfile &amp;nbsp;&amp;nbsp; DBMS=xlsx replace;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RANGE="import_data$";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GETNAMES=YES;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MIXED=YES;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; SCANTEXT=YES;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I take out everything from range down, it runs but can't obviously pick the sheet I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code works, but I want to fix the above regardless. And for this code, I have to specify the range or it does not work...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;libname inc xlsx "path\file.xlsx";&lt;BR /&gt;data inc_area; set inc."import_data$A1:U52"n; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any suggestions?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 21:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-not-working-with-xlsx-files-new-SAS-9-4-install-both/m-p/349616#M81129</guid>
      <dc:creator>sasuser1111</dc:creator>
      <dc:date>2017-04-12T21:31:22Z</dc:date>
    </item>
  </channel>
</rss>

