<?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: Hi All, Thanks for your quick response. I am using EXCEL... in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576265#M23061</link>
    <description>It depends on the code you used to export, not the version of Excel.</description>
    <pubDate>Wed, 24 Jul 2019 17:12:13 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-07-24T17:12:13Z</dc:date>
    <item>
      <title>Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576234#M23056</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Recently I am facing an Issue with Excel when we Write an ODS Statement .When the Program is completed and when I receive an email and open that excel file I am getting the below Error:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;the file you are trying to open is in a different format than specified by the file extension&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576234#M23056</guid>
      <dc:creator>saikiran_nemani</dc:creator>
      <dc:date>2019-07-24T17:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAS Issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576235#M23057</link>
      <description>&lt;P&gt;That means that the extension on the file does not match the content.&amp;nbsp;Your system is warning you that someone might be trying to fool you into opening a file that might be dangerous.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use ODS EXCEL then the extension on the file should be XLSX as that is the format it generates.&lt;/P&gt;
&lt;P&gt;If you use ODS TAGSETS=excelxp&amp;nbsp; then the extension on the file should be XML as that is the format it generates.&lt;/P&gt;
&lt;P&gt;If you use ODS CSV then extension is CSV.&lt;/P&gt;
&lt;P&gt;If you use ODS HTML then extension is HTML.&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 16:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576235#M23057</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-24T16:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAS Issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576236#M23058</link>
      <description>&lt;P&gt;show your exporting code would help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;are you exporting to xls using excelcs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 16:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576236#M23058</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-07-24T16:20:23Z</dc:date>
    </item>
    <item>
      <title>Hi All, Thanks for your quick response. I am using EXCEL...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576257#M23059</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thanks for your quick response.&lt;BR /&gt;&lt;BR /&gt;I am using EXCEL 2010 but the code is saying that .xls&lt;BR /&gt;&lt;BR /&gt;For 2007 above versions we need to keep .xlxs extension ?</description>
      <pubDate>Wed, 24 Jul 2019 16:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576257#M23059</guid>
      <dc:creator>saikiran_nemani</dc:creator>
      <dc:date>2019-07-24T16:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hi All, Thanks for your quick response. I am using EXCEL...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576260#M23060</link>
      <description>&lt;P&gt;You can do a simple test: if you can open the file with some kind of zip program (winzip, 7zip) and see content, then it should have the .xlsx extension.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576260#M23060</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-24T17:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hi All, Thanks for your quick response. I am using EXCEL...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576265#M23061</link>
      <description>It depends on the code you used to export, not the version of Excel.</description>
      <pubDate>Wed, 24 Jul 2019 17:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576265#M23061</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-24T17:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576276#M23062</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124432"&gt;@saikiran_nemani&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Recently I am facing an Issue with Excel when we Write an ODS Statement .When the Program is completed and when I receive an email and open that excel file I am getting the below Error:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;the file you are trying to open is in a different format than specified by the file extension&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS statement code please.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576276#M23062</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-24T17:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hi All, Thanks for your quick response. I am using EXCEL...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576307#M23063</link>
      <description>Hi:&lt;BR /&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; is correct. The file extension you use will depend on the ODS statements. For example, if you are using TAGSETS.EXCELXP, the correct file extension is .XML, NOT .XLS - otherwise, Excel will complain with exactly the message you describe.&lt;BR /&gt;&lt;BR /&gt;My recommendation is that you should change the code and use the file extensions shown in Reeza's post. Or else, change the registry, as described in this Tech Support note: &lt;A href="http://support.sas.com/kb/31/956.html" target="_blank"&gt;http://support.sas.com/kb/31/956.html&lt;/A&gt; .&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 24 Jul 2019 18:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576307#M23063</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-07-24T18:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576501#M23068</link>
      <description>ODS listing;&lt;BR /&gt;&lt;BR /&gt;ODS HTML FILE='/sas/sai/repeat_faults2.xls;&lt;BR /&gt;&lt;BR /&gt;ODS HTML CLose;</description>
      <pubDate>Thu, 25 Jul 2019 08:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576501#M23068</guid>
      <dc:creator>saikiran_nemani</dc:creator>
      <dc:date>2019-07-25T08:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576504#M23069</link>
      <description>&lt;P&gt;You try to lie to Excel, disguising a HTML file as an Excel file, and Excel rightfully complains about this.&lt;/P&gt;
&lt;P&gt;Use the proper extension:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS HTML FILE='/sas/sai/repeat_faults2.html';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and open the file from &lt;EM&gt;within&lt;/EM&gt; Excel (do not double-click the file in Explorer).&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 09:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576504#M23069</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-25T09:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576507#M23070</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16120"&gt;@Kurt&lt;/a&gt; Bremser :&lt;BR /&gt;&lt;BR /&gt;I need to export the file in excel.&lt;BR /&gt;&lt;BR /&gt;Please give any suggestions.</description>
      <pubDate>Thu, 25 Jul 2019 09:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576507#M23070</guid>
      <dc:creator>saikiran_nemani</dc:creator>
      <dc:date>2019-07-25T09:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576508#M23071</link>
      <description>&lt;P&gt;Excel can read html files with tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, use the correct ODS destination:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS EXCEL FILE='/sas/sai/repeat_faults2.xlsx';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;already told you.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 09:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576508#M23071</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-25T09:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576644#M23077</link>
      <description>What version of SAS are you using?</description>
      <pubDate>Thu, 25 Jul 2019 15:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576644#M23077</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-25T15:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576663#M23078</link>
      <description>SAS 9.3 and excel oss is not working</description>
      <pubDate>Thu, 25 Jul 2019 15:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576663#M23078</guid>
      <dc:creator>saikiran_nemani</dc:creator>
      <dc:date>2019-07-25T15:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576666#M23079</link>
      <description>No, ODS EXCEL isn't available in 9.3. &lt;BR /&gt;ODS TAGSETS.EXCELXP is as close as you can get and you need to use the XML extension. It does most of what ODS EXCEL does, just doesn't give a native Excel file. You could convert it after the fact, there's a vbs macro that does that on sas support website.</description>
      <pubDate>Thu, 25 Jul 2019 15:46:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576666#M23079</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-25T15:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576667#M23080</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124432"&gt;@saikiran_nemani&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;SAS 9.3 and excel oss is not working&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then you should use tagsets.excelxp and a .xml extension.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 15:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576667#M23080</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-25T15:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576671#M23081</link>
      <description>You should also ask yourself (or your company) why you are still using a version of SAS that was last updated 7 years ago?&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2013/08/02/how-old-is-your-version-of-sas-release-dates-for-sas-software.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2013/08/02/how-old-is-your-version-of-sas-release-dates-for-sas-software.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jul 2019 15:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576671#M23081</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-25T15:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576675#M23082</link>
      <description>ODS LISTING;&lt;BR /&gt;&lt;BR /&gt;ODS TAGSETS.EXCELXP FILE='/SAS/SAI/REPEAT_SUMMARY.XLS'&lt;BR /&gt;&lt;BR /&gt;ODS TAGSETS.EXCELXP CLOSE;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jul 2019 16:15:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576675#M23082</guid>
      <dc:creator>saikiran_nemani</dc:creator>
      <dc:date>2019-07-25T16:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576676#M23083</link>
      <description>&lt;P&gt;The extension must be xml., Excel will still open the file, though it may not be the default application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ODS TAGSETS.EXCELXP FILE='/SAS/SAI/REPEAT_SUMMARY.&lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;XML&lt;/STRONG&gt;&lt;/FONT&gt;'&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124432"&gt;@saikiran_nemani&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;ODS LISTING;&lt;BR /&gt;&lt;BR /&gt;ODS TAGSETS.EXCELXP FILE='/SAS/SAI/REPEAT_SUMMARY.XLS'&lt;BR /&gt;&lt;BR /&gt;ODS TAGSETS.EXCELXP CLOSE;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 16:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576676#M23083</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-25T16:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file warning - different format than file extension</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576680#M23085</link>
      <description>&lt;P&gt;If you persist in using .XLS as the file extension for TAGSETS.EXCELXP steps, you will continue to get the Microsoft warning. &lt;U&gt;&lt;STRONG&gt;This is a MICROSOFT requirement that the file extension match the contents of the file.&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Again&lt;/STRONG&gt;&lt;/U&gt;, &lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;the correct file extension to use with TAGSETS.EXCELXP is &lt;FONT size="5" color="#008000"&gt;.XML&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; -- &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;U&gt;NOT&lt;/U&gt; .XLS&lt;/STRONG&gt;&lt;/FONT&gt; because TAGSETS.EXCELXP is creating Spreadsheet Markup Language XML and Microsoft wants the output file to have the correct extension. Otherwise, change the registry, as I explained earlier based on the Tech Support note.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 16:35:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-file-warning-different-format-than-file-extension/m-p/576680#M23085</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-07-25T16:35:05Z</dc:date>
    </item>
  </channel>
</rss>

