<?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: error when reading excel97 files on win10 and sas 9.4 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687878#M208871</link>
    <description>&lt;P&gt;Respectfully, I converted an xls file to xlsx using Office 2019 and the described syntax would not read the xlsx file. And, where would a person find an installable version of excel 97 that would run on a win10 x64 machine. The alternative is to open and resave the files as csv, but we have, I guess, 3 waves * 4 respondents * 3 interview parts * 15 xls files per part.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 16:56:02 GMT</pubDate>
    <dc:creator>emaguin</dc:creator>
    <dc:date>2020-09-30T16:56:02Z</dc:date>
    <item>
      <title>error when reading excel97 files on win10 and sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687842#M208863</link>
      <description>&lt;P&gt;I'm not sure this is the right place but perhaps the right place can be pointed out.&lt;/P&gt;&lt;P&gt;Here's the problem. I have a win10 machine, sas9.4, and Office2019, all are 64 bit. I want read excel97 data files and i get an error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Connect: Class not registered&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;See attached file for complete syntax. A co-worker googled something related to the "ERROR: Connect ..." statement and found this website&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/kb/43/933.html" target="_blank"&gt;https://support.sas.com/kb/43/933.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This link references sas 9.3 and Office 2010, 2013, and 2016.&lt;/P&gt;&lt;P&gt;Is this information current with respect to my machine and installed software?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 15:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687842#M208863</guid>
      <dc:creator>emaguin</dc:creator>
      <dc:date>2020-09-30T15:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: error when reading excel97 files on win10 and sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687848#M208866</link>
      <description>&lt;P&gt;I believe the EXCEL dbms can only handle XLSX files.&amp;nbsp; Try the XLS dbms.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 15:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687848#M208866</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-30T15:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: error when reading excel97 files on win10 and sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687878#M208871</link>
      <description>&lt;P&gt;Respectfully, I converted an xls file to xlsx using Office 2019 and the described syntax would not read the xlsx file. And, where would a person find an installable version of excel 97 that would run on a win10 x64 machine. The alternative is to open and resave the files as csv, but we have, I guess, 3 waves * 4 respondents * 3 interview parts * 15 xls files per part.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 16:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687878#M208871</guid>
      <dc:creator>emaguin</dc:creator>
      <dc:date>2020-09-30T16:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: error when reading excel97 files on win10 and sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687891#M208877</link>
      <description>&lt;P&gt;Did you try using DBMS=XLS instead of DBMS=EXCEL?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 17:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687891#M208877</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-09-30T17:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: error when reading excel97 files on win10 and sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687899#M208883</link>
      <description>No, we didn't try that but I did just now. Here's what came back (but maybe there are some other things that need to be changed because this syntax was likely written circa 2010):&lt;BR /&gt;5 PROC IMPORT OUT= work.peer1lt1&lt;BR /&gt;6 DATAFILE= "N:\UBNeighborhoodFDP\UB Neighborhood Data\DATA\Data\T3 sas&lt;BR /&gt;6 ! data\Child\Questionnaires\Peer\t3_peer_interview_part_1_lt1.xls"&lt;BR /&gt;7 DBMS=xls REPLACE;&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;8 SHEET="t3_peer_interview_part_1_lt1$";&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;9 GETNAMES=YES;&lt;BR /&gt;10 MIXED=YES;&lt;BR /&gt;11 SCANTEXT=YES;&lt;BR /&gt;--------&lt;BR /&gt;180&lt;BR /&gt;12 USEDATE=YES;&lt;BR /&gt;-------&lt;BR /&gt;180&lt;BR /&gt;13 SCANTIME=YES;&lt;BR /&gt;--------&lt;BR /&gt;180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;&lt;BR /&gt;14 RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Sep 2020 17:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687899#M208883</guid>
      <dc:creator>emaguin</dc:creator>
      <dc:date>2020-09-30T17:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: error when reading excel97 files on win10 and sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687900#M208884</link>
      <description>&lt;P&gt;I have no issues importing excel97 file.&amp;nbsp; Instead of libname, use filename to point to the file&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME dat '~/dat/class.xls';
PROC IMPORT DATAFILE=dat
DBMS=XLS replace
OUT=WORK.IMPORT;
GETNAMES=YES; 
SHEET="All Students"n;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 17:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687900#M208884</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-09-30T17:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: error when reading excel97 files on win10 and sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687909#M208887</link>
      <description>Ok. I cleared the libname. Here's the log. I don't know why the Scantext, Usedate, and Scantime subcommands are used but I assume they are there because they were needed or are needed. Also, what does the "n" following the sheetname do? That wasn't liked either.&lt;BR /&gt;Separately from this, I went through the proc import menu system and I got the original Connect error.&lt;BR /&gt;&lt;BR /&gt;17&lt;BR /&gt;18 FILENAME dat "N:\UBNeighborhoodFDP\UB Neighborhood Data\DATA\Data\T3 sas data\&lt;BR /&gt;19 Child\Questionnaires\Peer\t3_peer_interview_part_1_lt1.xls";&lt;BR /&gt;20 PROC IMPORT DATAFILE=dat&lt;BR /&gt;21 DBMS=XLS replace&lt;BR /&gt;22 OUT=work.peer1lt1;&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;23 GETNAMES=YES;&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;24 MIXED=YES;&lt;BR /&gt;25 SCANTEXT=YES;&lt;BR /&gt;--------&lt;BR /&gt;180&lt;BR /&gt;26 USEDATE=YES;&lt;BR /&gt;-------&lt;BR /&gt;180&lt;BR /&gt;27 SCANTIME=YES;&lt;BR /&gt;--------&lt;BR /&gt;180&lt;BR /&gt;28 SHEET="t3_peer_interview_part_1_lt1$";n;&lt;BR /&gt;-&lt;BR /&gt;180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;&lt;BR /&gt;29 RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Sep 2020 18:03:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687909#M208887</guid>
      <dc:creator>emaguin</dc:creator>
      <dc:date>2020-09-30T18:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: error when reading excel97 files on win10 and sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687912#M208889</link>
      <description>&lt;P&gt;&amp;nbsp;n follows a non-standard file name or worksheet name, for example where there are embedded spaces. It should be inside the semi-colon not outside. Yours has none so it's not needed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try running my code with the same options.&amp;nbsp; &amp;nbsp;Then check the whether you other options are applicable in the xls engine&amp;nbsp; (perhaps Excel has been deprecated, it does not work in SAS UE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post your code (not as a log) and a sample of your data (dummy it up if confidential).&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 18:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/687912#M208889</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-09-30T18:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: error when reading excel97 files on win10 and sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/688004#M208924</link>
      <description>&lt;P&gt;&lt;SPAN&gt;SCANTEXT, USEDATE and&amp;nbsp;SCANTIME are not valid statements when you use DBMS = XLS.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check this&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=acpcref&amp;amp;docsetTarget=n0msy4hy1so0ren1acm90iijxn8j.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;link&lt;/A&gt;&amp;nbsp;for the valid statements and options.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 20:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/688004#M208924</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-09-30T20:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: error when reading excel97 files on win10 and sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/688036#M208942</link>
      <description>The denoument: one of our IT persons installed Microsoft access runtime 2013. Problem is now fixed.&lt;BR /&gt;I want to thank the persons who responded.&lt;BR /&gt;Gene Maguin&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Sep 2020 21:35:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/688036#M208942</guid>
      <dc:creator>emaguin</dc:creator>
      <dc:date>2020-09-30T21:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: error when reading excel97 files on win10 and sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/688037#M208943</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/273054"&gt;@emaguin&lt;/a&gt;&amp;nbsp; - Please mark your post as answered in that case.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 21:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-reading-excel97-files-on-win10-and-sas-9-4/m-p/688037#M208943</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-09-30T21:42:27Z</dc:date>
    </item>
  </channel>
</rss>

