<?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: ODS excel multiple sheet in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/237808#M14801</link>
    <description>&lt;P&gt;Did you ever get a solution to the problem of ods text titles?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2015 14:04:18 GMT</pubDate>
    <dc:creator>krritter</dc:creator>
    <dc:date>2015-12-04T14:04:18Z</dc:date>
    <item>
      <title>ODS excel multiple sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/225377#M14332</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing an excel report by using the new experimental ods dsestination: EXCEL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I simply would like to know if it is possible to write into several sheet, then same way excel tagset does: by calling ods excel with a different&amp;nbsp;sheet_name option:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel (id=sheet1) file=xlsheet options(sheet_interval="none"&amp;nbsp;sheet_name="summary1");&lt;/P&gt;&lt;P&gt;PROC REPORT 1&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel (id=sheet2) options(sheet_name="summary2") ;&lt;/P&gt;&lt;P&gt;PROC REPORT 2&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods _all_ close ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I only manage to get the last report to be displayed and I don't want to use PROC EXPORT.&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 14:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/225377#M14332</guid>
      <dc:creator>proc_sortt</dc:creator>
      <dc:date>2015-09-14T14:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel multiple sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/225378#M14333</link>
      <description>&lt;P&gt;This works fine for me:&lt;/P&gt;&lt;P&gt;ods excel file="s:\temp\rob\temp.xlsx" options(sheet_name="sheet1");&lt;BR /&gt;proc print data=sashelp.cars;&lt;BR /&gt;run;&lt;BR /&gt;ods excel options(sheet_name="sheet2");&lt;BR /&gt;proc print data=sashelp.class;&lt;BR /&gt;run;&lt;BR /&gt;ods excel options(sheet_name="sheet3");&lt;BR /&gt;proc print data=sashelp.cars;&lt;BR /&gt;run;&lt;BR /&gt;ods excel close;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 14:33:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/225378#M14333</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-09-14T14:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel multiple sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/225379#M14334</link>
      <description>&lt;P&gt;Thank you very much for the solution, I just removed the id statement and then it worked smoothly !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/225379#M14334</guid>
      <dc:creator>proc_sortt</dc:creator>
      <dc:date>2015-09-14T15:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel multiple sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/225386#M14336</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID= is meant to be used when you are opening multiple instances of the SAME destination, which is not what you needed to do. That's why it did not work in your case. A good example of using ID= with ODS Excel and ID= is shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods excel(id=one) file='c:\temp\out1_sasweb.xlsx' style=sasweb&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; options(sheet_name='first_in_one');&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods excel(id=two) file='c:\temp\out2_htmlblue.xlsx' style=htmlblue&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; options(sheet_name='first_in_two');&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc print data=sashelp.class;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods excel(id=one) options(sheet_name='xxx');&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods excel(id=two) options(sheet_name='yyy');&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc print data=sashelp.shoes(obs=3);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp; So, in this example code, 2 separate files (with different names)&amp;nbsp;are created from the same procedures using the SAME destination, ODS EXCEL. Each file used a different style and each file has different names for the tabs. So the sheet names for the out1_sasweb.xlsx file will be first_in_one and xxx and the sheet names for the out2_htmlblue.xlsx will be first_in_two and yyy.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;cynthia&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:28:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/225386#M14336</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-09-14T15:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel multiple sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/225400#M14338</link>
      <description>&lt;P&gt;Thank you Cynthia, this is a very clear example!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Back to my problem,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using ods text to push text into the excel report, but something strange happend, the text is going into the first tab, which is not what I want. Do you have maybe an idea why ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel options(
sheet_name="Prog summary"
);
/* Datasets detailed report */
ods text="~S={font_size=14pt font_weight=bold}~ blop3" ;
ods text="~S={font_size=14pt font_weight=bold}~ blop4" ;
ods text="~S={font_size=14pt font_weight=bold}~ Summary of datasets" ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 16:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/225400#M14338</guid>
      <dc:creator>proc_sortt</dc:creator>
      <dc:date>2015-09-14T16:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel multiple sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/237808#M14801</link>
      <description>&lt;P&gt;Did you ever get a solution to the problem of ods text titles?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 14:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/m-p/237808#M14801</guid>
      <dc:creator>krritter</dc:creator>
      <dc:date>2015-12-04T14:04:18Z</dc:date>
    </item>
  </channel>
</rss>

