<?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: SAS 9.2 and Excel 2010 - change in formats or unreadable error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-Excel-2010-change-in-formats-or-unreadable-error/m-p/78301#M16946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you add the replace statement?&lt;/P&gt;&lt;P&gt;I'm using SAS 9.2 M3 and Windows7 Office2010 and the code below works for me very fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data=work.datahave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outfile="datahave.xls"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=excelcs replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet= "Datahave";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to mention that if you have already an existing file which you have exported with the statement option dbms=xls, then you have to use a different filename for the first time. Afterwards it shouldn't be a problem to replace the file. &lt;BR /&gt;Good luck&lt;/P&gt;&lt;P&gt;Domenico&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2013 16:59:39 GMT</pubDate>
    <dc:creator>Domenico</dc:creator>
    <dc:date>2013-01-21T16:59:39Z</dc:date>
    <item>
      <title>SAS 9.2 and Excel 2010 - change in formats or unreadable error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-Excel-2010-change-in-formats-or-unreadable-error/m-p/78298#M16943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I'm trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Excel report built with the data sources on a separate sheet that feeds pre formatted tables and graphs.&amp;nbsp; The template is saved as a .XLS file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I export data to it from SAS 9.2 using the libname engine (excel) then the formatting changes, e.g. colours and styles, some things go bold and others change colours.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried saving the file as .xlsx and then writing to it that way, there are no more format changes but I get an error: &lt;/P&gt;&lt;H1&gt;&lt;SPAN style="font-size: 12pt;"&gt;Excel found unreadable content" error in .xlsx file&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I found this usage note on how to get rid of it but not sure it applies.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/40/383.html" title="http://support.sas.com/kb/40/383.html"&gt;40383 - An unreadable content error occurs when you open Microsoft Excel files that were created by a 64-bit Excel driver&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Has anyone come across this issue before and is there a workaround/solution.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;There doesn't appear to be any actual unreadable content that I could find and the reports work fine except for the error.&lt;/SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 20:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-Excel-2010-change-in-formats-or-unreadable-error/m-p/78298#M16943</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-17T20:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.2 and Excel 2010 - change in formats or unreadable error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-Excel-2010-change-in-formats-or-unreadable-error/m-p/78299#M16944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got this problem one week ago. I could resolve it by changing the statement option from dbms=xls to dbms=excelcs.&lt;/P&gt;&lt;P&gt;By the way keep .xls not .xlsx!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Domenico&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 14:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-Excel-2010-change-in-formats-or-unreadable-error/m-p/78299#M16944</guid>
      <dc:creator>Domenico</dc:creator>
      <dc:date>2013-01-21T14:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.2 and Excel 2010 - change in formats or unreadable error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-Excel-2010-change-in-formats-or-unreadable-error/m-p/78300#M16945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ExcelCS doesn't allow me to drop my tables and/or rewrite over them though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 16:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-Excel-2010-change-in-formats-or-unreadable-error/m-p/78300#M16945</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-21T16:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.2 and Excel 2010 - change in formats or unreadable error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-Excel-2010-change-in-formats-or-unreadable-error/m-p/78301#M16946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you add the replace statement?&lt;/P&gt;&lt;P&gt;I'm using SAS 9.2 M3 and Windows7 Office2010 and the code below works for me very fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data=work.datahave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outfile="datahave.xls"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=excelcs replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet= "Datahave";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to mention that if you have already an existing file which you have exported with the statement option dbms=xls, then you have to use a different filename for the first time. Afterwards it shouldn't be a problem to replace the file. &lt;BR /&gt;Good luck&lt;/P&gt;&lt;P&gt;Domenico&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 16:59:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-Excel-2010-change-in-formats-or-unreadable-error/m-p/78301#M16946</guid>
      <dc:creator>Domenico</dc:creator>
      <dc:date>2013-01-21T16:59:39Z</dc:date>
    </item>
  </channel>
</rss>

