<?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: Proc Export to Excel - Multiple tables to one xlsx file on different sheets in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286144#M16424</link>
    <description>&lt;P&gt;&amp;nbsp;i am using below code .&lt;/P&gt;&lt;P&gt;However it is keeping the last output in to the spreadsheet.&lt;/P&gt;&lt;P&gt;Please do suggest if we need to change anything or use some different approach.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; myfile&lt;/FONT&gt; "xxxxxxxxxx.xml"&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; tagsets.excelxp &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;body&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=myfile &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;STYLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=HTMLBLUE OPTIONS(SHEET_NAME=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"CCCC"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;print&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=dd.CCCC&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noobs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; tagsets.excelxp &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;body&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=myfile &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;STYLE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=HTMLBLUE OPTIONS(SHEET_NAME=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"DDDD"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;print&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=dd.dddd &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noobs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;/*** close and clear ***/&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ODS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; tagsets.excelxp &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CLOSE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2016 14:25:56 GMT</pubDate>
    <dc:creator>Dd07</dc:creator>
    <dc:date>2016-07-21T14:25:56Z</dc:date>
    <item>
      <title>Proc Export to Excel - Multiple tables to one xlsx file on different sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286090#M16419</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need asistance when i am trying to export multiple tables to one spreadhseet its keeping the last one Howver i tried with dbms=excelcs still did not work,tried with ods tagsets still the issue persist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do &amp;nbsp;suggest.I am using sas 9.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=======================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;97 %macro exp(dataset,path,date,Sheet);&lt;BR /&gt;98 proc export data=dd.&amp;amp;dataset.&lt;BR /&gt;99 outfile="&amp;amp;path.heatmap_&amp;amp;date..Xlsx"&lt;BR /&gt;100 DBMS=&lt;STRONG&gt;excelcs&lt;/STRONG&gt; replace;&lt;BR /&gt;101 /*Need to check the excelcs dbms engine*/&lt;BR /&gt;102 Sheet="&amp;amp;sheet.";&lt;BR /&gt;103 run;&lt;BR /&gt;104 %mend exp;&lt;BR /&gt;105&lt;BR /&gt;106 %exp(Research_Items,&amp;amp;path.,&amp;amp;sysdate.,Research_Items);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Failed to connect to the Server: .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;===================================&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 12:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286090#M16419</guid>
      <dc:creator>Dd07</dc:creator>
      <dc:date>2016-07-21T12:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Excel - Multiple tables to one xlsx file on different sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286095#M16420</link>
      <description>&lt;P&gt;Well, the replace will create a new file each time, so that won't work. &amp;nbsp;DBMS should be xlsx. &amp;nbsp;Does it work without the macro code, i.e. just plain proc export? &amp;nbsp;You oculd be missing the office interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 12:21:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286095#M16420</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-21T12:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Excel - Multiple tables to one xlsx file on different sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286136#M16421</link>
      <description>&lt;P&gt;Tagsets should work. What was your issue with it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example of how that works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286136#M16421</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-21T14:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Excel - Multiple tables to one xlsx file on different sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286139#M16422</link>
      <description>&lt;P&gt;Yes .Its working fine with xlsx however its keeping only one dataset to workbook.&lt;/P&gt;&lt;P&gt;My requirement is need to have multiple sheet in a single workbook.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286139#M16422</guid>
      <dc:creator>Dd07</dc:creator>
      <dc:date>2016-07-21T14:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Excel - Multiple tables to one xlsx file on different sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286142#M16423</link>
      <description>&lt;P&gt;SAS 9.3 and XLSX does not support multiple sheets.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286142#M16423</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-21T14:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Excel - Multiple tables to one xlsx file on different sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286144#M16424</link>
      <description>&lt;P&gt;&amp;nbsp;i am using below code .&lt;/P&gt;&lt;P&gt;However it is keeping the last output in to the spreadsheet.&lt;/P&gt;&lt;P&gt;Please do suggest if we need to change anything or use some different approach.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; myfile&lt;/FONT&gt; "xxxxxxxxxx.xml"&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; tagsets.excelxp &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;body&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=myfile &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;STYLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=HTMLBLUE OPTIONS(SHEET_NAME=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"CCCC"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;print&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=dd.CCCC&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noobs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; tagsets.excelxp &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;body&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=myfile &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;STYLE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=HTMLBLUE OPTIONS(SHEET_NAME=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"DDDD"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;print&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=dd.dddd &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noobs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;/*** close and clear ***/&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ODS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; tagsets.excelxp &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CLOSE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286144#M16424</guid>
      <dc:creator>Dd07</dc:creator>
      <dc:date>2016-07-21T14:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Excel - Multiple tables to one xlsx file on different sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286147#M16425</link>
      <description>&lt;P&gt;Your mixing up HTML destination and XLSX destination. &amp;nbsp;To use XLSX:&lt;/P&gt;
&lt;PRE&gt;ods tagsets.excelxp file="c:\xyz.xlsx" style=htmlblue options(sheet_name="First");
proc print data=sashelp.class;
run;
ods tagsets.excelxp options(sheet_name="Second");
proc print data=sashelp.cars;
run;
ods tagsets.excelxp close;&lt;/PRE&gt;
&lt;P&gt;You will note that I specify the file only once, at the top. &amp;nbsp;If you specify it any more it will overwrite.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286147#M16425</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-21T14:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Excel - Multiple tables to one xlsx file on different sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286805#M16449</link>
      <description>&lt;P&gt;You can try from below sample, its working for me :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;CREATE TABLE t1 AS&lt;/P&gt;
&lt;P&gt;select * from abc;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;CREATE TABLE t2 AS&lt;/P&gt;
&lt;P&gt;select * from def;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;CREATE TABLE t3 AS&lt;/P&gt;
&lt;P&gt;select * from ghi;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;CREATE TABLE t4 AS&lt;/P&gt;
&lt;P&gt;select * from jkl;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods TAGSETS.EXCELXP body=outbox rs=none style=styles.HTMLBlue;&lt;/P&gt;
&lt;P&gt;ods TAGSETS.EXCELXP text="test sample text";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods TAGSETS.EXCELXP rs=none OPTIONS(SHEET_NAME="abc");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;print&lt;/STRONG&gt; data=t1 noobs;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods TAGSETS.EXCELXP rs=none OPTIONS(SHEET_NAME="def");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;print&lt;/STRONG&gt; data=t2 noobs;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods TAGSETS.EXCELXP rs=none OPTIONS(SHEET_NAME="ghi");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;print&lt;/STRONG&gt; data=t3 noobs;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods TAGSETS.EXCELXP rs=none OPTIONS(SHEET_NAME="jkl");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;print&lt;/STRONG&gt; data=t4 noobs;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;ods TAGSETS.EXCELXP close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename outbox email&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to='abc@abc.com'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from='def@def.com'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type='application/vnd.ms-excel'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subject='Sample First Program';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Creating excel sheet with 4 different tabs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 09:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Export-to-Excel-Multiple-tables-to-one-xlsx-file-on/m-p/286805#M16449</guid>
      <dc:creator>PreenaKaur</dc:creator>
      <dc:date>2016-07-25T09:51:21Z</dc:date>
    </item>
  </channel>
</rss>

