<?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: Trouble importing Excel using PC File Server in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/225987#M5409</link>
    <description>&lt;P&gt;PC Files are for later versions not earlier versions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try DBMS=Excel4 or Excel5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#p0jf3o1i67m044n1j0kz51ifhpvs.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#p0jf3o1i67m044n1j0kz51ifhpvs.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2015 04:23:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-09-17T04:23:28Z</dc:date>
    <item>
      <title>Trouble importing Excel using PC File Server</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/225985#M5408</link>
      <description>&lt;P&gt;I've downloaded Excel files containing data for air monitoring stations on a yearly basis.&amp;nbsp; Therefore I'm looking at 20 or more Excel files per year from 1991 to 2015.&amp;nbsp; I've been able to easily import the Excel files from the later years using DBMS=xls.&amp;nbsp; However, when I get to those in 2007 they're save in an early Excel format.&amp;nbsp; Using DBMS=xls I get the indication that the file is Version 4 or early.&amp;nbsp; I then tried using the DBMS=excel and got a Class not found error.&amp;nbsp; Searching the internet I determined that I needed to install the PC FIle Server on my system as I'm running a 32 bit Windows and 64 bit SAS.&amp;nbsp; I downloaded the appropriate version based upon my SAS version and installed.&amp;nbsp; Using the following commands (note this is a portion of my macro which I know works as its what I've used in the later year runs):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile=&amp;amp;excelfilename&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out=temp1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=excelcs replace;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet=&amp;amp;sheetname;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I end up with the following error messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: CLI describe error: [Microsoft][ODBC Excel Driver] External table is not in the expected&amp;nbsp;format.&lt;BR /&gt;ERROR: Import unsuccessful.&amp;nbsp; See SAS Log for details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm at a loss.&amp;nbsp;I know I can open each excel file and convert it to a newer version of excel but that's more than 200 files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be most appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, WIlliam&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 02:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/225985#M5408</guid>
      <dc:creator>wgfmoonpie</dc:creator>
      <dc:date>2015-09-17T02:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble importing Excel using PC File Server</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/225987#M5409</link>
      <description>&lt;P&gt;PC Files are for later versions not earlier versions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try DBMS=Excel4 or Excel5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#p0jf3o1i67m044n1j0kz51ifhpvs.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#p0jf3o1i67m044n1j0kz51ifhpvs.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 04:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/225987#M5409</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-17T04:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble importing Excel using PC File Server</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/225990#M5410</link>
      <description>&lt;P&gt;Hint for the future: do &lt;U&gt;not&lt;/U&gt; store raw data in a Microsoft-derived format. Always use something that is easily readable across platforms and software generations and can be monitored with a simple text editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd use the opportunity and write a VBS that batch-converts all the data to .csv&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 05:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/225990#M5410</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-09-17T05:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble importing Excel using PC File Server</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/226040#M5411</link>
      <description>&lt;P&gt;Definitely appreciate the responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had tried 'Excel4' and just tried 'Excel5'.&amp;nbsp; Unfortunately both give the following message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR:&amp;nbsp; An exception has been encountered.&lt;BR /&gt;Please contact technical support and provide them with the following traceback information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kurt, I am in 100% agreement with you.&amp;nbsp; Unfortunately, this is data I had to download not data I had collected.&amp;nbsp; I therefore had no control of the format used, just trying to find the most effective way to get the data into a usable source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 12:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/226040#M5411</guid>
      <dc:creator>wgfmoonpie</dc:creator>
      <dc:date>2015-09-17T12:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble importing Excel using PC File Server</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/226075#M5412</link>
      <description>Can you post a sample of the file? It may be faster to convert to cvs as Kurt suggested. Try it without sheet option.</description>
      <pubDate>Thu, 17 Sep 2015 15:34:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/226075#M5412</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-17T15:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble importing Excel using PC File Server</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/226199#M5413</link>
      <description>What version is your SAS ? If it is 9.4 , also could try : dbms=xlsx</description>
      <pubDate>Fri, 18 Sep 2015 07:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-importing-Excel-using-PC-File-Server/m-p/226199#M5413</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-09-18T07:22:28Z</dc:date>
    </item>
  </channel>
</rss>

