<?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: Unable to open xls file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989333#M380192</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We are unable to open an .xls file generated by a SAS program on a local desktop. However, the same program works correctly when generating an .xlsx file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message: “We found a problem with some content in &amp;lt;filename.xls&amp;gt;.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue started occurring after upgrading to SAS 9.4 M8. The same functionality was working fine in SAS 9.4 M7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: There are no special characters in the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Statement:&lt;BR /&gt;proc export data=sample outfile=/home/raju/filename.xls" dbms=xls&lt;A href="https://king365tv-eu.com/" target="_self"&gt;site&lt;/A&gt;&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Srinivas&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I've run into similar issues before where the problem wasn't actually SAS but the Excel file itself. In a couple of cases the file had an .xls extension even though it wasn't a valid Excel workbook anymore. Opening the file directly in Excel and then saving it as a fresh workbook solved the issue. It might be worth checking whether the file opens normally outside of SAS before spending too much time troubleshooting the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2026 22:23:28 GMT</pubDate>
    <dc:creator>BillyVelasq</dc:creator>
    <dc:date>2026-06-05T22:23:28Z</dc:date>
    <item>
      <title>Unable to open xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989213#M380173</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We are unable to open an .xls file generated by a SAS program on a local desktop. However, the same program works correctly when generating an .xlsx file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message:&amp;nbsp;“We found a problem with some content in &amp;lt;filename.xls&amp;gt;.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue started occurring after upgrading to SAS 9.4 M8. The same functionality was working fine in SAS 9.4 M7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp;There are no special characters in the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Statement:&amp;nbsp;&lt;BR /&gt;proc export data=sample outfile=/home/raju/filename.xls" dbms=xls&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Srinivas&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 06:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989213#M380173</guid>
      <dc:creator>srinivasa_attot</dc:creator>
      <dc:date>2026-06-04T06:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989222#M380174</link>
      <description>&lt;P&gt;Are you running into this?&lt;BR /&gt;&lt;BR /&gt;Problem Note&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;40383:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;An unreadable content error occurs when you open Microsoft Excel files that were created by a 64-bit Excel driver&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/40/383.html" target="_blank"&gt;https://support.sas.com/kb/40/383.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 09:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989222#M380174</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-06-04T09:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989249#M380175</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/473750"&gt;@srinivasa_attot&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Statement:&amp;nbsp;&lt;BR /&gt;proc export data=sample outfile=/home/raju/filename.xls" dbms=xls&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Is this a typographical error? You need a double quote after outfile= to match the double-quote at the end of the file name.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 11:01:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989249#M380175</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2026-06-04T11:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989250#M380176</link>
      <description>&lt;P&gt;It's a typo error.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 11:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989250#M380176</guid>
      <dc:creator>srinivasa_attot</dc:creator>
      <dc:date>2026-06-04T11:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989251#M380177</link>
      <description>I tried the article, but it did not help.</description>
      <pubDate>Thu, 04 Jun 2026 11:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989251#M380177</guid>
      <dc:creator>srinivasa_attot</dc:creator>
      <dc:date>2026-06-04T11:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989296#M380188</link>
      <description>Did you try EXCEL engine ?&lt;BR /&gt;&lt;BR /&gt;proc export data=sample outfile=/home/raju/filename.xls" dbms=excel&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;or XLSX engine :&lt;BR /&gt;proc export data=sample outfile=/home/raju/filename.xls" dbms=xlsx&lt;BR /&gt;replace;&lt;BR /&gt;run;</description>
      <pubDate>Fri, 05 Jun 2026 07:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989296#M380188</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-05T07:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989298#M380190</link>
      <description>DBMS=EXCEL gave an error as " DBMS TYPE EXCEL IS NOT VALID PROMPT"</description>
      <pubDate>Fri, 05 Jun 2026 09:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989298#M380190</guid>
      <dc:creator>srinivasa_attot</dc:creator>
      <dc:date>2026-06-05T09:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989303#M380191</link>
      <description>&lt;P&gt;What exactly is generating that error message? Because it sounds like something that would be generated by a program that was trying to READ the file.&amp;nbsp; Please share you SAS log so we can see the exact error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also do you really need to create the ancient XLS format?&amp;nbsp; Try switching to the XLSX format and see if that works better for you.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=sample
  dbms=xlsx
  outfile="/home/raju/filename.xlsx" replace
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Jun 2026 14:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989303#M380191</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-06-05T14:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989333#M380192</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We are unable to open an .xls file generated by a SAS program on a local desktop. However, the same program works correctly when generating an .xlsx file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message: “We found a problem with some content in &amp;lt;filename.xls&amp;gt;.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue started occurring after upgrading to SAS 9.4 M8. The same functionality was working fine in SAS 9.4 M7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: There are no special characters in the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Statement:&lt;BR /&gt;proc export data=sample outfile=/home/raju/filename.xls" dbms=xls&lt;A href="https://king365tv-eu.com/" target="_self"&gt;site&lt;/A&gt;&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Srinivas&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I've run into similar issues before where the problem wasn't actually SAS but the Excel file itself. In a couple of cases the file had an .xls extension even though it wasn't a valid Excel workbook anymore. Opening the file directly in Excel and then saving it as a fresh workbook solved the issue. It might be worth checking whether the file opens normally outside of SAS before spending too much time troubleshooting the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 22:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989333#M380192</guid>
      <dc:creator>BillyVelasq</dc:creator>
      <dc:date>2026-06-05T22:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989337#M380193</link>
      <description>&lt;P&gt;Usually the problem with reading an Excel file created by SAS is caused by SAS not actually putting any information into the file.&amp;nbsp; Make sure that the step that actually writes to the XLS file has written at least one observation with at least one variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also XLS files have smaller limits on number of rows (observations) and columns (variables) than modern XLSX files allow.&amp;nbsp; Perhaps your data exceeds one or both of those limits.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2026 14:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-open-xls-file/m-p/989337#M380193</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-06-06T14:23:35Z</dc:date>
    </item>
  </channel>
</rss>

