<?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 Cannot import excel file (xls) into SAS 9.4 version in window 10 environment in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686957#M208515</link>
    <description>&lt;P&gt;Dear Madam/Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have recently changed window environment from 7 to 10. When the excel file is imported into SAS 9.4 using import menu, import cannnot be done and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The error still shows:" Connect: Class not registered. Error in the LIBNAME statement." after I tried most solutions...including installing PC server and SAS re-installation.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I searched this community blogs and found the following code and have error message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3 PROC IMPORT DATAFILE="C:\Users\hakjoon\Documents\Labor union and&lt;BR /&gt;3 ! comparability\data\Unionizationrate19992018"&lt;BR /&gt;4 DBMS=EXCELCS&lt;BR /&gt;5 OUT=WORK.e1 REPLACE;&lt;BR /&gt;6 RUN;&lt;/P&gt;&lt;P&gt;ERROR: Unable to open file C:\Users\hakjoon\Documents\Labor union and&lt;BR /&gt;comparability\data\Unionizationrate19992018. It does not exist or it is already opened&lt;BR /&gt;exclusively by another user, or you need permission to view its data.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.33 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help will be highly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Joon1&lt;/P&gt;</description>
    <pubDate>Sat, 26 Sep 2020 20:31:35 GMT</pubDate>
    <dc:creator>joon1</dc:creator>
    <dc:date>2020-09-26T20:31:35Z</dc:date>
    <item>
      <title>Cannot import excel file (xls) into SAS 9.4 version in window 10 environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686957#M208515</link>
      <description>&lt;P&gt;Dear Madam/Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have recently changed window environment from 7 to 10. When the excel file is imported into SAS 9.4 using import menu, import cannnot be done and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The error still shows:" Connect: Class not registered. Error in the LIBNAME statement." after I tried most solutions...including installing PC server and SAS re-installation.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I searched this community blogs and found the following code and have error message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3 PROC IMPORT DATAFILE="C:\Users\hakjoon\Documents\Labor union and&lt;BR /&gt;3 ! comparability\data\Unionizationrate19992018"&lt;BR /&gt;4 DBMS=EXCELCS&lt;BR /&gt;5 OUT=WORK.e1 REPLACE;&lt;BR /&gt;6 RUN;&lt;/P&gt;&lt;P&gt;ERROR: Unable to open file C:\Users\hakjoon\Documents\Labor union and&lt;BR /&gt;comparability\data\Unionizationrate19992018. It does not exist or it is already opened&lt;BR /&gt;exclusively by another user, or you need permission to view its data.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.33 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help will be highly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Joon1&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2020 20:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686957#M208515</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-26T20:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import excel file (xls) into SAS 9.4 version in window 10 environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686965#M208520</link>
      <description>&lt;P&gt;Excel files should have a file extension of xls or xlsx, your filename has no extension.&lt;/P&gt;
&lt;P&gt;For a modern xlsx file, DBMS=XLSX or LIBNAME XLSX should work, regardless of bitness.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2020 21:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686965#M208520</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-26T21:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import excel file (xls) into SAS 9.4 version in window 10 environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686985#M208524</link>
      <description>&lt;P&gt;Dear KurtBremser,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is the error message without extension in the file name "Unionizationrate19992018".&lt;/P&gt;&lt;P&gt;11 proc import DATAFILE="C:\Users\hakjoon\Documents\Labor union and&lt;BR /&gt;11 ! comparability\data\Unionizationrate19992018"&lt;BR /&gt;12 DBMS=xlsx&lt;BR /&gt;13 OUT=WORK.e1 REPLACE;&lt;BR /&gt;14 RUN;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, C:\Users\hakjoon\Documents\Labor union and&lt;BR /&gt;comparability\data\Unionizationrate19992018.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is the error message with extension in the file name "Unionizationrate19992018.xls".&lt;/P&gt;&lt;P&gt;15 proc import DATAFILE="C:\Users\hakjoon\Documents\Labor union and&lt;BR /&gt;15 ! comparability\data\Unionizationrate19992018.xls"&lt;BR /&gt;16 DBMS=xlsx&lt;BR /&gt;17 OUT=WORK.e1 REPLACE;&lt;BR /&gt;18 RUN;&lt;/P&gt;&lt;P&gt;ERROR: Error opening XLSX file -&amp;gt; C:\Users\hakjoon\Documents\Labor union and&lt;BR /&gt;comparability\data\Unionizationrate19992018.xls.xlsx . It is either not an Excel spreadsheet or&lt;BR /&gt;it is damaged. Error code=8014900A&lt;BR /&gt;Requested Input File Is Invalid&lt;BR /&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;Joon1&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 02:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686985#M208524</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-27T02:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import excel file (xls) into SAS 9.4 version in window 10 environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686988#M208525</link>
      <description>&lt;P&gt;Your filename in the DATAFILE= still does not have an extension. Excel filenames end with .xlsx (or .xls for older files).&lt;/P&gt;
&lt;P&gt;You hsve to supply the&amp;nbsp;&lt;EM&gt;whole&lt;/EM&gt; filename to the option.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 02:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686988#M208525</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-27T02:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import excel file (xls) into SAS 9.4 version in window 10 environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686989#M208526</link>
      <description>&lt;P&gt;If you have an older Excel file, I suggest you open it with Excel first and save it as xlsx.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 02:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686989#M208526</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-27T02:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import excel file (xls) into SAS 9.4 version in window 10 environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686991#M208527</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/107110"&gt;@joon1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing you might try is changing EXCELCS to EXCEL for your DBMS parameter.&amp;nbsp; That's a bit of a long shot, but it's worth a try.&amp;nbsp; If that doesn't work, then as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;suggested, you could just open the Excel spreadsheet with Excel and save it as type xlsx.&amp;nbsp; Then you could use the XLSX Libname engine.&amp;nbsp; See example below.&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\hakjoon\Documents\Labor union and comparability\data\Unionizationrate19992018.xls"
    DBMS=EXCEL
    OUT=WORK.e1 REPLACE;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;XLSX Libname example.&lt;/P&gt;
&lt;P&gt;The sheet name inside the Excel file becomes the dataset name used with the SET statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME MyXL XLSX "C:\Users\hakjoon\Documents\Labor union and comparability\data\Unionizationrate19992018.xls";

DATA  WORK.e1;
    SET MyXL.MySheet;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jimbarbour_0-1601174574712.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49833iE54E6588B3067023/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jimbarbour_0-1601174574712.png" alt="jimbarbour_0-1601174574712.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 02:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/686991#M208527</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-09-27T02:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import excel file (xls) into SAS 9.4 version in window 10 environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/687003#M208534</link>
      <description>&lt;P&gt;Thank you so much for your help. It is resolved!&lt;/P&gt;&lt;P&gt;Have a good weekend and stay safe.&lt;/P&gt;&lt;P&gt;Joon1&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 04:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/687003#M208534</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-27T04:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import excel file (xls) into SAS 9.4 version in window 10 environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/687066#M208568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you could save your excel files as "xx.csv" files and that should give no problem at all.&lt;/P&gt;&lt;P&gt;At the sas interface click on the pull down 'file" menu, choose&amp;nbsp; "import data" and navigate to the location of your csv file. Follow the indicated next steps from the import wizard pop-up menu and the importing of the file will go smoothly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 22:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-import-excel-file-xls-into-SAS-9-4-version-in-window-10/m-p/687066#M208568</guid>
      <dc:creator>marcel</dc:creator>
      <dc:date>2020-09-27T22:22:27Z</dc:date>
    </item>
  </channel>
</rss>

