<?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: .xlsx output using ODS option in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/358990#M84401</link>
    <description>&lt;P&gt;Location used in the FILE= is correct.&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2017 12:26:57 GMT</pubDate>
    <dc:creator>Data_User</dc:creator>
    <dc:date>2017-05-16T12:26:57Z</dc:date>
    <item>
      <title>.xlsx output using ODS option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/358981#M84395</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to export the SAS output into .xlsx format using ODS option? The below program is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sort&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=sashelp.class &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=test;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; age;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; excel &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"/sasserver/excel_conversion_file.xlsx"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;print&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=test;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; excel &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;close&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 12:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/358981#M84395</guid>
      <dc:creator>Data_User</dc:creator>
      <dc:date>2017-05-16T12:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: .xlsx output using ODS option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/358985#M84397</link>
      <description>&lt;P&gt;"Not working"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please tell us EXACTLY what is not working. Show us the SASLOG. Give us details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a guess, is that a valid file location next to FILE= ???&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 12:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/358985#M84397</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-05-16T12:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: .xlsx output using ODS option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/358989#M84400</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Yes, it's working when I use .xlsx version. File is getting created, cannot open it. Thanks for looking into it.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;It says 'Excel cannot open the file because the file format or file extenstion is not valid'. However this is working fine with .xls format.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Is there a way to get the output file in .xlsx without any error?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sort&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=sashelp.class &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=test;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; age;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tagsets.excelxp &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"/sas server path/excel_conversion_file.xlsx"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;print&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=test;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tagsets.excelxp &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;close&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 12:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/358989#M84400</guid>
      <dc:creator>Data_User</dc:creator>
      <dc:date>2017-05-16T12:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: .xlsx output using ODS option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/358990#M84401</link>
      <description>&lt;P&gt;Location used in the FILE= is correct.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 12:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/358990#M84401</guid>
      <dc:creator>Data_User</dc:creator>
      <dc:date>2017-05-16T12:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: .xlsx output using ODS option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/358998#M84407</link>
      <description>&lt;P&gt;Is the problem happening using ODS EXCEL like in your original post, or using ODS TAGSETS.EXCELXP as in your second example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What version of Excel do you use?&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 13:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/358998#M84407</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-05-16T13:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: .xlsx output using ODS option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/359025#M84425</link>
      <description>Hi:&lt;BR /&gt;  TAGSETS.EXCELXP does NOT, NOT, NOT, ever create an XLSX file. TAGSETS.EXCELXP can ONLY create a simple .XML file which contains Spreadsheet Markup Language 2003 XML tags for a workbook/worksheet. The "official" file extension is .XML. If you use a .XLS file extension, typically, Excel will open the file, but display a message about the file extension not matching the contents. With TAGSETS.EXCELXP you should NEVER use XLSX as the file extension.&lt;BR /&gt;&lt;BR /&gt;With ODS EXCEL, on the other hand, the ONLY file extension you should use is .XLSX. If you truly used ODS EXCEL, then you should be able to open the .XLSX file with Excel, if you a creating the file on a Unix box, you might have to move the .XLSX file to a Windows machine so you can open the file.&lt;BR /&gt;&lt;BR /&gt;  If you are using TAGSETS.EXCELXP, try using the simple .XML file extension and then moving the file to a system with Excel to open the file.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 16 May 2017 13:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xlsx-output-using-ODS-option/m-p/359025#M84425</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-05-16T13:46:13Z</dc:date>
    </item>
  </channel>
</rss>

