<?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: Libname method using PCFiles engine for Excel creates Excel files that can't be opened in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/313147#M67986</link>
    <description>&lt;P&gt;Thanks to both of you for your ideas.&amp;nbsp; I actually tried both to no avail.&amp;nbsp; Unfortunately I don't have the latest build of 9.4, so the attempt at using the xlsx method failed.&amp;nbsp; I tried removing the libname (xls) and just using "pcfiles" as my libname reference, and this didn't work either.&amp;nbsp; I tried:&lt;/P&gt;&lt;P&gt;libname pcfiles path=...., but this only gave me a message saying there is no such libname.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried again changing the libname to xlsx:&lt;/P&gt;&lt;P&gt;libname xlsx pcfiles path=....&lt;/P&gt;&lt;P&gt;This again appears to work, with no errors in SAS, but the resulting Excel file won't open.&amp;nbsp; The error states, "Excel cannot open the file '&amp;lt;filename&amp;gt;.xlsx' because the file format or file extension is not valid.&amp;nbsp; Verify that the file has not been corrupted and that the file extension matches the format of the file."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2016 16:27:19 GMT</pubDate>
    <dc:creator>BBSHOPSINGER</dc:creator>
    <dc:date>2016-11-21T16:27:19Z</dc:date>
    <item>
      <title>Libname method using PCFiles engine for Excel creates Excel files that can't be opened</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/312758#M67858</link>
      <description>&lt;P&gt;I'm using SAS 9.4 and trying to use code that worked fine in 9.3 but is giving me problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the libname method to export data into Excel.&amp;nbsp; The original libname statement was&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;libname xls&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"V:\&amp;lt;spreadsheet name&amp;gt;.xlsx" (&amp;lt;spreadsheet name&amp;gt; is the full address of the file)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;I changed the code to add in pcfiles path= so it looks like this:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;libname xls pcfiles path=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"&amp;lt;spreadsheet name&amp;gt;.xlsx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;The code runs fine, and everything appears to work.&amp;nbsp; But when I try to open the resulting excel file, Excel will not open.&amp;nbsp; It isn't the libname clear issue, but Excel is telling me that the file is in an invalid format.&amp;nbsp; Any ideas?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2016 00:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/312758#M67858</guid>
      <dc:creator>BBSHOPSINGER</dc:creator>
      <dc:date>2016-11-19T00:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Libname method using PCFiles engine for Excel creates Excel files that can't be opened</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/312763#M67859</link>
      <description>&lt;P&gt;Try using XLSX and not PCFILES.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2016 01:00:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/312763#M67859</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-19T01:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Libname method using PCFiles engine for Excel creates Excel files that can't be opened</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/312813#M67872</link>
      <description>&lt;P&gt;Take out the "xls".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead: &amp;nbsp;&lt;FONT face="Courier New" size="2"&gt;libname pcfiles path=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"&amp;lt;spreadsheet name&amp;gt;.xlsx"&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2016 16:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/312813#M67872</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2016-11-19T16:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Libname method using PCFiles engine for Excel creates Excel files that can't be opened</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/312850#M67888</link>
      <description>&lt;P&gt;I'm with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;If you're using a current SAS release then use the XLSX enging and not PCFILES&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#n0oj9f6i838mymn148890ckla700.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#n0oj9f6i838mymn148890ckla700.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 01:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/312850#M67888</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-11-20T01:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Libname method using PCFiles engine for Excel creates Excel files that can't be opened</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/313147#M67986</link>
      <description>&lt;P&gt;Thanks to both of you for your ideas.&amp;nbsp; I actually tried both to no avail.&amp;nbsp; Unfortunately I don't have the latest build of 9.4, so the attempt at using the xlsx method failed.&amp;nbsp; I tried removing the libname (xls) and just using "pcfiles" as my libname reference, and this didn't work either.&amp;nbsp; I tried:&lt;/P&gt;&lt;P&gt;libname pcfiles path=...., but this only gave me a message saying there is no such libname.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried again changing the libname to xlsx:&lt;/P&gt;&lt;P&gt;libname xlsx pcfiles path=....&lt;/P&gt;&lt;P&gt;This again appears to work, with no errors in SAS, but the resulting Excel file won't open.&amp;nbsp; The error states, "Excel cannot open the file '&amp;lt;filename&amp;gt;.xlsx' because the file format or file extension is not valid.&amp;nbsp; Verify that the file has not been corrupted and that the file extension matches the format of the file."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/313147#M67986</guid>
      <dc:creator>BBSHOPSINGER</dc:creator>
      <dc:date>2016-11-21T16:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Libname method using PCFiles engine for Excel creates Excel files that can't be opened</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/313152#M67988</link>
      <description>&lt;P&gt;You need a libref.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;libname MYDATA pcfiles path='....';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:45:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/313152#M67988</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2016-11-21T16:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Libname method using PCFiles engine for Excel creates Excel files that can't be opened</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/313175#M68005</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/108596"&gt;@BBSHOPSINGER﻿&lt;/a&gt;&amp;nbsp;You're putting too much into your libname statement. It's either PCFILES or XLSX not both.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname out XLSX 'path to my file';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This worked as of SAS 9.3 so even if you don't have the latest version of SAS 9.4 it should work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 18:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/313175#M68005</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-21T18:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Libname method using PCFiles engine for Excel creates Excel files that can't be opened</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/313210#M68021</link>
      <description>&lt;P&gt;My "xlsx" was intended to be the libname.&amp;nbsp; I experimented with several libnames with the same result.&amp;nbsp; No errors in the log, it appears to work fine, but the resulting Excel file will not open when using the pcfiles code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the xlsx method, it also appears to work, but again I get unreadable content in the excel file.&amp;nbsp; The message here is "Excel found unreadable content in &amp;lt;filename&amp;gt;.&amp;nbsp; Do you want to recover the contents of this workbook?"&amp;nbsp; If I click yes, it opens, but with unreadable content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to use the method that worked fine in 9.3 (just using a libname statement without an "xlsx" or "pcfiles") it gives me a SAS error:&lt;/P&gt;&lt;P&gt;ERROR: Connect: Class not registered&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I'm going to have to find a different method here.&amp;nbsp; Could the issue be 64-bit SAS vs. 32-bit Office?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 19:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-method-using-PCFiles-engine-for-Excel-creates-Excel/m-p/313210#M68021</guid>
      <dc:creator>BBSHOPSINGER</dc:creator>
      <dc:date>2016-11-21T19:23:47Z</dc:date>
    </item>
  </channel>
</rss>

