<?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 tagsets.excelxp in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59589#M7130</link>
    <description>Hello everyone,&lt;BR /&gt;
&lt;BR /&gt;
I am using ODS tagsets.excelxp for the first time.  I am just testing the code and writing the output to an .xls file on my desktop.  The code runs fine on SAS; no errors.  I can see the excel doc on the desktop with the .xls extension.&lt;BR /&gt;
&lt;BR /&gt;
However, when I try to open the excel doc I get an error message saying "The file you are trying to open is in a different format than specified by the file extension".  The file exists on the desktop and has the .xls extension.  Does anyone have any idea why I am getting this error message?  &lt;BR /&gt;
&lt;BR /&gt;
Here is my code:&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp file = "&amp;amp;out.refi_analysis_test.xls";&lt;BR /&gt;
&lt;BR /&gt;
proc sort data = sashelp.class out = class;&lt;BR /&gt;
by age;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data = class;&lt;BR /&gt;
by age;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thank you for any input!!</description>
    <pubDate>Mon, 02 Aug 2010 22:09:22 GMT</pubDate>
    <dc:creator>KevinC_</dc:creator>
    <dc:date>2010-08-02T22:09:22Z</dc:date>
    <item>
      <title>tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59589#M7130</link>
      <description>Hello everyone,&lt;BR /&gt;
&lt;BR /&gt;
I am using ODS tagsets.excelxp for the first time.  I am just testing the code and writing the output to an .xls file on my desktop.  The code runs fine on SAS; no errors.  I can see the excel doc on the desktop with the .xls extension.&lt;BR /&gt;
&lt;BR /&gt;
However, when I try to open the excel doc I get an error message saying "The file you are trying to open is in a different format than specified by the file extension".  The file exists on the desktop and has the .xls extension.  Does anyone have any idea why I am getting this error message?  &lt;BR /&gt;
&lt;BR /&gt;
Here is my code:&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp file = "&amp;amp;out.refi_analysis_test.xls";&lt;BR /&gt;
&lt;BR /&gt;
proc sort data = sashelp.class out = class;&lt;BR /&gt;
by age;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data = class;&lt;BR /&gt;
by age;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thank you for any input!!</description>
      <pubDate>Mon, 02 Aug 2010 22:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59589#M7130</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2010-08-02T22:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59590#M7131</link>
      <description>Technically, when you call an XML file (what TAGSETS.EXCELXP creates) with a .XLS extension, that error message is correct, the file you are trying to open, '[filename]', &lt;B&gt;&lt;U&gt; is in a different format &lt;/U&gt;&lt;/B&gt;&lt;U&gt;&lt;/U&gt; than the one specified by the file extension.&lt;BR /&gt;
 &lt;BR /&gt;
You just have to respond YES to the popup warning. Or else name the file .XML and do a File --&amp;gt; Open from Excel instead of launching Excel with a double click.&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/35/581.html" target="_blank"&gt;http://support.sas.com/kb/35/581.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 02 Aug 2010 22:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59590#M7131</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-02T22:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59591#M7132</link>
      <description>Thank you, Cynthia.  &lt;BR /&gt;
I clicked "Yes" and tried to open the excel doc and was prompted "Unable to Read File".  Then I changed the file extension to .xml and reran the code.  When I opend the xml doc this is what's in it: &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
- &lt;WORKBOOK xmlns="urn:schemas-microsoft-com:office:spreadsheet" X="urn:schemas-microsoft-com:office:excel" SS="urn:schemas-microsoft-com:office:spreadsheet" HTML="http://www.w3.org/TR/REC-html40"&gt;&lt;BR /&gt;
- &lt;DOCUMENTPROPERTIES xmlns="urn:schemas-microsoft-com:office"&gt;&lt;BR /&gt;
  &lt;AUTHOR&gt;X000000&lt;/AUTHOR&gt; &lt;BR /&gt;
  &lt;LASTAUTHOR&gt;X000000&lt;/LASTAUTHOR&gt; &lt;BR /&gt;
  &lt;CREATED&gt;2010-08-03T09:38:15&lt;/CREATED&gt; &lt;BR /&gt;
  &lt;LASTSAVED&gt;2010-08-03T09:38:15&lt;/LASTSAVED&gt; &lt;BR /&gt;
  &lt;COMPANY&gt;SAS Institute Inc. &lt;A href="http://www.sas.com" target="_blank"&gt;http://www.sas.com&lt;/A&gt;&lt;/COMPANY&gt; &lt;BR /&gt;
  &lt;VERSION&gt;9.01.01M3P07282004&lt;/VERSION&gt; &lt;BR /&gt;
  &lt;/DOCUMENTPROPERTIES&gt;&lt;BR /&gt;
  &lt;/WORKBOOK&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Does anyone have any suggestion?&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.</description>
      <pubDate>Tue, 03 Aug 2010 13:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59591#M7132</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2010-08-03T13:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59592#M7133</link>
      <description>Hi:&lt;BR /&gt;
  At this point, I would recommend that you work with Tech Support. &lt;BR /&gt;
&lt;BR /&gt;
  In all instances of running TAGSETS.EXCELXP and using Excel 2007 to open the file I am able to have Excel open the file when I click YES in response to that message -- using your code. When Excel opens, I have 6 worksheets, one for each AGE.&lt;BR /&gt;
 &lt;BR /&gt;
  The XML that you see in the file is CORRECT -- TAGSETS.EXCELXP creates Spreadsheet Markup Language XML as defined by Microsoft for Office 2003. Excel 2007 should open the TAGSETS.EXCELXP XML file (even with a .XML extension). Did you open the file in the browser, in Notepad or with a lower version of Excel (such as Excel 2000)???&lt;BR /&gt;
&lt;BR /&gt;
Usually, the only time I have issues with the Excel and the XML created by TAGSETS.EXCELXP is one of these circumstances:&lt;BR /&gt;
1) try to name the file .XLSX &lt;BR /&gt;
OR&lt;BR /&gt;
2) perform something in the SAS code that causes the XML to be invalid (like using embedded_title with a version of the tagset that didn't support embedded_titles) -- which doesn't seem to be the case in your code&lt;BR /&gt;
OR&lt;BR /&gt;
3) Use EG and try to open the XML file with EG -- the file is OK -- but Enterprise Guide only "wants' to open SASReport XML -- not Spreadsheet XML&lt;BR /&gt;
OR&lt;BR /&gt;
4) Use SAS 9.1.3 and have an older version of the tagset template (very similar to #2) &lt;BR /&gt;
OR&lt;BR /&gt;
5) Use Office 97 or Office 2000 and try to open the file (since Spreadsheet XML was designed for Office 2002/2003, Excel 97 and 2000 will not open the XML file into a spreadsheet.&lt;BR /&gt;
&lt;BR /&gt;
To open a track with Tech Support, fill out the form at this link:&lt;BR /&gt;
&lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 03 Aug 2010 14:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59592#M7133</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-03T14:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59593#M7134</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much for your input and suggestions!  I have downloaded updated tagsets from &lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/index.html" target="_blank"&gt;http://support.sas.com/rnd/base/ods/odsmarkup/index.html&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
Apparently this was never installed on my PC.  After I downloaded the tagsets the code worked beautifully.&lt;BR /&gt;
&lt;BR /&gt;
Thank you again for your help!</description>
      <pubDate>Tue, 03 Aug 2010 15:06:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59593#M7134</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2010-08-03T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59594#M7135</link>
      <description>Actually, one more question.  Can we control the font size of the title or the content of the .xls ?  I tried to look it up but couldn't seem to find any example..  Thanks.</description>
      <pubDate>Tue, 03 Aug 2010 15:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-excelxp/m-p/59594#M7135</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2010-08-03T15:23:14Z</dc:date>
    </item>
  </channel>
</rss>

