<?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 of Excel not v5 when using PROC IMPORT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498140#M132290</link>
    <description>Can you attach a copy of the file that you believe is xls? Sometimes people put an xls extension but the underlying file is HTML or CSV. Excel will still open the files correctly.</description>
    <pubDate>Sun, 23 Sep 2018 01:21:26 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-09-23T01:21:26Z</dc:date>
    <item>
      <title>Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498055#M132237</link>
      <description>&lt;P&gt;Hi everyone. I am trying to use PROC IMPORT to import XLS file.&lt;/P&gt;&lt;P&gt;If i use dbms=csv, i will not hit any error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the thing, if i set dbms = xls, i will get below error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;"Spreadsheet isn't from Excel V5 or later.&amp;nbsp; Please open it in Excel and Save as V5 or later&lt;/P&gt;&lt;P&gt;Requested Input File Is Invalid&lt;/P&gt;&lt;P&gt;ERROR: Import unsuccessful.&amp;nbsp; See SAS Log for details."&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i temporary remain csv for now. However, the file is xls format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also another question, is there a way for SAS to read formulated final value that cells have formula in excel? By using csv option(not sure is caused by csv or not), the loaded data is the formula instead of the formulated value.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 10:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498055#M132237</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2018-09-22T10:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498057#M132238</link>
      <description>&lt;P&gt;have you tried xlsx&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 11:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498057#M132238</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-22T11:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498058#M132239</link>
      <description>&lt;P&gt;What version of SAS are you using?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you running SAS on a Windows machine? Do you have Excel installed on that machine? Did you try using the DBMS=EXCEL?&lt;/P&gt;
&lt;P&gt;Why is your XLS file using an old version of the XLS format?&amp;nbsp; Can you just save it as an XLSX file instead?&lt;/P&gt;
&lt;P&gt;CSV files are just text. If the value in the CSV is the formula then you created the CSV file with the wrong options.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 11:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498058#M132239</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-22T11:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498087#M132256</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122002"&gt;@VDD&lt;/a&gt;I tried xlsx but it gave me error. I havent go back to my work laptop now but i can post the error later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;SAS 9.4, running SAS EG and DI on windows machine and the excel is installed on the machine. However, SAS server were hosted/installed on Linux server and excel spreadsheets are all stored in the linux server. I've tried DBMS=excel but it prompt errors. Unfortunately, I am out of town for the next 9 hours. I will try to show the error to you 10 hours later when using DBMS=Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The files are all in XLS format. There are more than 500 of them, maybe even more than 1000 as i havent check folder by folder. There is no way for me to change the format nor do i tell my user to save it manually to xlsx as those are generated by another system handled by another team.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file that i am reading is xls. Is there a way for me to capture the calculated value? If tweaking the DBMS or other options can work, i would be more than happy to learn about it Tom.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 16:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498087#M132256</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2018-09-22T16:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498092#M132258</link>
      <description>&lt;P&gt;Hi Guys. I managed to borrow laptop from others to remote connect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i use DBMS = XLSX, i get error below:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ERROR: Error opening XLSX file -&amp;gt; /data/source/ttt/Files/Central/ABBA/Central_ABBA_11_201401.xls.xlsx .&amp;nbsp; It is either not an Excel spreadsheet or it is damaged.&amp;nbsp;&amp;nbsp; Error code=8014900A&lt;BR /&gt;Requested Input File Is Invalid&lt;BR /&gt;ERROR: Import unsuccessful.&amp;nbsp; See SAS Log for details.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i use DBMS=Excel, i get error below:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;PROC IMPORT OUT= WORK.excelout DATAFILE= "/data/source/ttt/Files/Central/ABBA/Central_ABBA_11_201401.xls"&lt;BR /&gt;27&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;29&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=excel REPLACE;&lt;BR /&gt;ERROR: DBMS type EXCEL not valid for import.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only option that i can use is csv but it will not take in the formulated value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope there is a workaround here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Proc Import statement:&lt;/P&gt;&lt;PRE&gt;PROC IMPORT OUT= WORK.excelout DATAFILE= "/data/source/ttt/Files/Central/ABBA/Central_ABBA_11_201401.xls" 

            DBMS=excel REPLACE;
getnames=no;
RUN;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Sep 2018 16:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498092#M132258</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2018-09-22T16:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498140#M132290</link>
      <description>Can you attach a copy of the file that you believe is xls? Sometimes people put an xls extension but the underlying file is HTML or CSV. Excel will still open the files correctly.</description>
      <pubDate>Sun, 23 Sep 2018 01:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498140#M132290</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-23T01:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498160#M132306</link>
      <description>&lt;P&gt;Sure, you may have a look at it but SAS Forum restrict me from doing so with this error &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/P&gt;&lt;DIV class="InfoMessage lia-panel-feedback-banner-alert lia-feedback-secondary-message lia-component-common-widget-page-feedback"&gt;&lt;DIV class="lia-text"&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Correct the highlighted errors and try again.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The file sas forum excel.xlt does not have a valid extension for an attachment and has been removed. sas,txt,csv,zip,pdf,ics,sx,sxs,doc,docx,xls,xlsx,egp,sav,sas7bdat,ctm,ctk,rtf,py are the valid extensions.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 23 Sep 2018 02:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498160#M132306</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2018-09-23T02:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498161#M132307</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;I managed to zip it. You may have a look at the xls file.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 02:19:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498161#M132307</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2018-09-23T02:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498164#M132310</link>
      <description>&lt;P&gt;The file is XLT, not XLS, so SAS is correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use VBS to convert the files automatically, or do it manually, but you'll likely have to change the type. Or you can try specifying it as xlt and see what happens.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/878e585102c14e01581f55dbe972d27e" target="_blank"&gt;https://gist.github.com/statgeek/878e585102c14e01581f55dbe972d27e&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 02:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498164#M132310</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-23T02:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498166#M132311</link>
      <description>Reeza, I think I uploaded the wrong file as I was trying to save the original excel into many different extension for testing purpose. Let me reupload it back when I got back my work desk. I appreciate for your patience and effort.</description>
      <pubDate>Sun, 23 Sep 2018 03:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498166#M132311</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2018-09-23T03:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498169#M132313</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, kindly refer to my new upload.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 04:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498169#M132313</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2018-09-23T04:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498181#M132322</link>
      <description>&lt;P&gt;Hi Guys! Problem solved.&lt;/P&gt;&lt;P&gt;I retain dbsm=csv but adding delimiter option of tab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way, it can read properly as i suspect the file is in xls but with some xml or scripts in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thanks everyone that gave me guidance and explanation. I really appreciate your effort and I wish you good luck.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 06:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498181#M132322</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2018-09-23T06:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498228#M132352</link>
      <description>&lt;P&gt;I am glad your problem is solved but this whole conversation makes no sense.&lt;/P&gt;
&lt;P&gt;You started off saying you were getting errors importing an XLS file.&amp;nbsp; You ended up posting an XLS file that SAS can read with no problems and then saying that you solved the problem by importing a CSV (delimited text file) with TAB as the delimiter.&amp;nbsp; Does that mean you changed the files somehow?&amp;nbsp; Or that they were never XLS files to begin with?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 00:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498228#M132352</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-24T00:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error of Excel not v5 when using PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498423#M132448</link>
      <description>&lt;P&gt;Then you likely never had an xls file. You had a tab delimited file that someone changed the extension on and that Excel happened to open correctly. Note that a CSV file means comma separated variables. Since your delimiter is not a comma or semicolon (french) and the delimiter is tab, specify that alone, not CSV because that's incorrect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/63520"&gt;@imdickson&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Guys! Problem solved.&lt;/P&gt;
&lt;P&gt;I retain dbsm=csv but adding delimiter option of tab.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This way, it can read properly as i suspect the file is in xls but with some xml or scripts in it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thanks everyone that gave me guidance and explanation. I really appreciate your effort and I wish you good luck.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 14:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-of-Excel-not-v5-when-using-PROC-IMPORT/m-p/498423#M132448</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-24T14:54:03Z</dc:date>
    </item>
  </channel>
</rss>

