<?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 Error opening excel files produced with ODS tagsets.excelxp in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-opening-excel-files-produced-with-ODS-tagsets-excelxp/m-p/159231#M299425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to use ODS tagsets.excelxp in Sas V9.3 on a system that has Microsoft Excel 2010 installed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the simplified version my code:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ODS TAGSETS.EXCELXP file="C:\file.xls" &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;OPTIONS(EMBEDDED_TITLES='YES' EMBEDDED_FOOTNOTES='YES');&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;PROC TABULATE DATA=test MISSING;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;CLASS PGM&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;YEAR;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;TABLE PGM, YEAR;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;RUN;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ODS&amp;nbsp; TAGSETS.EXCELXP CLOSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem:&lt;/P&gt;&lt;P&gt;After I run the code, an excel file is produced in the target location. If I double click to open, Excel does not open and instead I get this&amp;nbsp; "Microsoft Excel has stopped working".&lt;/P&gt;&lt;P&gt; If i open the file from inside excel, it opens fine after I get a warning telling me the file is in a different format from that specified by the extension.&lt;/P&gt;&lt;P&gt;Once open, if i go file&amp;gt;saveas, the default 'save as type' is XML spreadsheet 2003. If change this to xls and save then the file opens fine when i simply double-click it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way of getting around having this extra step?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried instead tagsets.msoffice2k. I have tried putting ODS _all_ close before the bit of code. And I recently installed microsoft data connectivity components which sorted out my proc import issues with excel. However none of these have resolved this issue i have described.&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated!&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Sarasvati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2014 16:53:54 GMT</pubDate>
    <dc:creator>saras</dc:creator>
    <dc:date>2014-08-13T16:53:54Z</dc:date>
    <item>
      <title>Error opening excel files produced with ODS tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-opening-excel-files-produced-with-ODS-tagsets-excelxp/m-p/159231#M299425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to use ODS tagsets.excelxp in Sas V9.3 on a system that has Microsoft Excel 2010 installed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the simplified version my code:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ODS TAGSETS.EXCELXP file="C:\file.xls" &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;OPTIONS(EMBEDDED_TITLES='YES' EMBEDDED_FOOTNOTES='YES');&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;PROC TABULATE DATA=test MISSING;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;CLASS PGM&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;YEAR;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;TABLE PGM, YEAR;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;RUN;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ODS&amp;nbsp; TAGSETS.EXCELXP CLOSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem:&lt;/P&gt;&lt;P&gt;After I run the code, an excel file is produced in the target location. If I double click to open, Excel does not open and instead I get this&amp;nbsp; "Microsoft Excel has stopped working".&lt;/P&gt;&lt;P&gt; If i open the file from inside excel, it opens fine after I get a warning telling me the file is in a different format from that specified by the extension.&lt;/P&gt;&lt;P&gt;Once open, if i go file&amp;gt;saveas, the default 'save as type' is XML spreadsheet 2003. If change this to xls and save then the file opens fine when i simply double-click it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way of getting around having this extra step?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried instead tagsets.msoffice2k. I have tried putting ODS _all_ close before the bit of code. And I recently installed microsoft data connectivity components which sorted out my proc import issues with excel. However none of these have resolved this issue i have described.&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated!&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Sarasvati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 16:53:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-opening-excel-files-produced-with-ODS-tagsets-excelxp/m-p/159231#M299425</guid>
      <dc:creator>saras</dc:creator>
      <dc:date>2014-08-13T16:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening excel files produced with ODS tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-opening-excel-files-produced-with-ODS-tagsets-excelxp/m-p/159232#M299426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Odd.&amp;nbsp; Tagsets.excelxp does produce an xml file, but they've always opened fine for me in Excel (with that warning), except when there was an error in the XML.&amp;nbsp; (and that never caused Excel to crash).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you open any XML files using Excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might try changing the file extension to file="C:\file.xml"&amp;nbsp;&amp;nbsp; (That shouldn't fix it, but worth a shot).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 17:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-opening-excel-files-produced-with-ODS-tagsets-excelxp/m-p/159232#M299426</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-08-13T17:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening excel files produced with ODS tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-opening-excel-files-produced-with-ODS-tagsets-excelxp/m-p/159233#M299427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attaching an xml file made with below code.&amp;nbsp; THis opens okay for me.&amp;nbsp; I'm running SAS 9.3 on Win 7 and Excel 2010&lt;/P&gt;&lt;PRE&gt;ODS TAGSETS.EXCELXP file="d:\junk\file.xls"

OPTIONS(EMBEDDED_TITLES='YES' EMBEDDED_FOOTNOTES='YES');

PROC TABULATE DATA=sashelp.class MISSING;

CLASS sex age;

TABLE sex, age;

RUN;

ODS&amp;nbsp; TAGSETS.EXCELXP CLOSE;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 17:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-opening-excel-files-produced-with-ODS-tagsets-excelxp/m-p/159233#M299427</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-08-13T17:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening excel files produced with ODS tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-opening-excel-files-produced-with-ODS-tagsets-excelxp/m-p/159234#M299428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have SAS 9.4 you can try ODS EXCEL - I don't so can't try it yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, you may also want to look at adding a short VB script after that will automatically convert those files to native Excel files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/43/496.html" title="http://support.sas.com/kb/43/496.html"&gt;43496 - Convert files created using an ODS destination to native Excel files&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 17:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-opening-excel-files-produced-with-ODS-tagsets-excelxp/m-p/159234#M299428</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-08-13T17:27:09Z</dc:date>
    </item>
  </channel>
</rss>

