<?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: Creating a multiple sheets Excel output with ODS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239762#M14915</link>
    <description>&lt;P&gt;Ok..apparently you declare the option with sheet_interval='none' to create a new page. Everytime you want a new page, set the option again. Also, make sure you're using the latest version of tagsets from t he webpage.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods tagsets.excelxp  file='C:/_localdata/sample.xml' options(sheet_interval='none');

proc print data=sashelp.class;
run;

proc print data=sashelp.class;
run;

ods tagsets.excelxp options(sheet_interval='none');

proc print data= sashelp.air;
run;


proc print data=sashelp.cars;
run;

ods tagsets.excelxp close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 17 Dec 2015 15:31:44 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-12-17T15:31:44Z</dc:date>
    <item>
      <title>Creating a multiple sheets Excel output with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239419#M14880</link>
      <description>&lt;P&gt;I am sorry if this is a&amp;nbsp;repetition, but I cannot find a solution to my problem. I would like to create an Excel output file with multiple sheets. For some reason nothing works for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS&amp;nbsp;EXCEL file="output.xlsx"&lt;BR /&gt;style=HTMLBlue &amp;nbsp;&lt;BR /&gt;options(&lt;BR /&gt;&amp;nbsp; &amp;nbsp;embedded_titles='yes'&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sheet_interval="none"&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sheet_name="Sheet 1"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;%someMacroFunction_ThatPrints_TheOutput;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;ODS excel&amp;nbsp;options(sheet_name="Sheet 2");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;%&lt;/SPAN&gt;&lt;SPAN style="line-height: 20px;"&gt;another&lt;/SPAN&gt;&lt;SPAN style="line-height: 20px;"&gt;MacroFunction_ThatPrints_TheOutput;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS Excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I get is a file with a single sheet "Sheet 1". I tried to replace ODS EXCEL with ODS&amp;nbsp;tagsets.excelxp&amp;nbsp;. Same results. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 20:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239419#M14880</guid>
      <dc:creator>braverju</dc:creator>
      <dc:date>2015-12-15T20:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a multiple sheets Excel output with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239421#M14881</link>
      <description>Sheet_Interval should be PROC.&lt;BR /&gt;None indicates that it all goes to one sheet.&lt;BR /&gt;&lt;BR /&gt;SHEET_INTERVAL	Options:	Interval to divide the output between worksheets. Values are Table, Page, Bygroup, Proc, or None</description>
      <pubDate>Tue, 15 Dec 2015 20:28:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239421#M14881</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-15T20:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a multiple sheets Excel output with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239566#M14889</link>
      <description>Thanks a lot!</description>
      <pubDate>Wed, 16 Dec 2015 16:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239566#M14889</guid>
      <dc:creator>braverju</dc:creator>
      <dc:date>2015-12-16T16:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a multiple sheets Excel output with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239614#M14897</link>
      <description>&lt;P&gt;Thank you again. May I ask a bit more on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the code to&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS&amp;nbsp;EXCEL file="output.xlsx"&lt;BR /&gt;style=HTMLBlue &amp;nbsp;&lt;BR /&gt;options(&lt;BR /&gt;&amp;nbsp; &amp;nbsp;embedded_titles='yes'&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sheet_interval="PROC"&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sheet_name="Sheet 1"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%someMacroFunction_ThatPrints_TheOutput;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ODS excel&amp;nbsp;options(sheet_name="Sheet 2");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%&lt;/SPAN&gt;&lt;SPAN&gt;another&lt;/SPAN&gt;&lt;SPAN&gt;MacroFunction_ThatPrints_TheOutput;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ODS Excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now ever single PROC is printed in a separate sheet. &amp;nbsp;I tried something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ODS excel&amp;nbsp;options(sheet_name="Sheet 1"&lt;SPAN&gt;&amp;nbsp;sheet_interval="none&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;nbsp;&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%&lt;/SPAN&gt;&lt;SPAN&gt;first&lt;/SPAN&gt;&lt;SPAN&gt;MacroFunction_ThatPrints_TheOutput;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ODS excel&amp;nbsp;options(sheet_name="Sheet 2" &lt;SPAN&gt;sheet_interval="&lt;/SPAN&gt;&lt;SPAN&gt;PROC&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%&lt;/SPAN&gt;&lt;SPAN&gt;another&lt;/SPAN&gt;&lt;SPAN&gt;MacroFunction_ThatPrints_TheOutput;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I get all PROCS in the firstMacroFunction_ThatPrints_TheOutput printed on a single sheet (as requested). But the rest are all printed on separate sheets. If I change the 3rd line to sheet_interval = 'none' I get everything on the single&amp;nbsp;sheet (first macro AND the second&amp;nbsp;macro).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would appreciate your help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Julia&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 20:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239614#M14897</guid>
      <dc:creator>braverju</dc:creator>
      <dc:date>2015-12-16T20:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a multiple sheets Excel output with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239617#M14898</link>
      <description>I don't understand your question. You can control the output type by changing ods excel options in the middle but I have no idea what your functions are doing so I can't help with that. The option stays valid until you change it.</description>
      <pubDate>Wed, 16 Dec 2015 20:23:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239617#M14898</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-16T20:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a multiple sheets Excel output with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239619#M14900</link>
      <description>&lt;P&gt;I am sorry for not being clear. The macro functions just print a list of different freq tables. Stating simply I would like to have several tables on Sheet 1 and several more on Sheet 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ODS excel&amp;nbsp;options(sheet_name="Sheet 1"&lt;SPAN&gt;&amp;nbsp;sheet_interval="none&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;nbsp;&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROC FREQ .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROC FREQ .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROC FREQ .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ODS excel&amp;nbsp;options(sheet_name="Sheet 2" &lt;SPAN&gt;sheet_interval="&lt;/SPAN&gt;&lt;SPAN&gt;PROC&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;PROC FREQ ...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;PROC FREQ...&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I get by this code is the first 3 FREQ results on a single sheet (as expected) and the last two each one on its own sheet. I would like to have three first FREQ results on Sheet 1 and the last two PROC FREQ results on Sheet 2. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 20:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239619#M14900</guid>
      <dc:creator>braverju</dc:creator>
      <dc:date>2015-12-16T20:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a multiple sheets Excel output with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239636#M14901</link>
      <description>&lt;P&gt;Untested, but I think you'd have to switch it after you switched it to proc and then back to none.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS excel&amp;nbsp;options(sheet_name="Sheet 2" sheet_interval="PROC");
PROC FREQ ...
RUN;
ODS excel&amp;nbsp;options(sheet_name="Sheet 2" sheet_interval="NONE");
PROC FREQ...
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 22:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239636#M14901</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-16T22:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a multiple sheets Excel output with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239745#M14913</link>
      <description>&lt;P&gt;Yeah.. This would work if I wanted a single PROC printed on Sheet 1 and then multiple PROCs printed on Sheet 2. However, when I want multiple PROCs printed on Sheet 1 and then again multiple PROCs printed on Sheet 2 it doesn't work. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; What does sheet_interval = "page" do? For some reason I cannot google&amp;nbsp;a clear explanation on&amp;nbsp;that....Thank you a lot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 13:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239745#M14913</guid>
      <dc:creator>braverju</dc:creator>
      <dc:date>2015-12-17T13:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a multiple sheets Excel output with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239762#M14915</link>
      <description>&lt;P&gt;Ok..apparently you declare the option with sheet_interval='none' to create a new page. Everytime you want a new page, set the option again. Also, make sure you're using the latest version of tagsets from t he webpage.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods tagsets.excelxp  file='C:/_localdata/sample.xml' options(sheet_interval='none');

proc print data=sashelp.class;
run;

proc print data=sashelp.class;
run;

ods tagsets.excelxp options(sheet_interval='none');

proc print data= sashelp.air;
run;


proc print data=sashelp.cars;
run;

ods tagsets.excelxp close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Dec 2015 15:31:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239762#M14915</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-17T15:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a multiple sheets Excel output with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/240313#M14961</link>
      <description>&lt;P&gt;Thank you... I am actually using&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS Excel (rather than ODS&amp;nbsp;tagsets.excelxp because it's important for me to create an output as an Excel file (not as xml). Do you think it is&amp;nbsp;a problem? I also assumed&amp;nbsp;that calling sheet_interval = 'none' should create a new sheet every time I call it. Apparentely, it doesn't.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 20:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/240313#M14961</guid>
      <dc:creator>braverju</dc:creator>
      <dc:date>2015-12-21T20:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a multiple sheets Excel output with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/240317#M14964</link>
      <description>It can definitely be an issue with ODS Excel. I thought  ODS Excel was still pre-production, didn't realize it was fully implemented yet. I'm on SAS 9.3 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Mon, 21 Dec 2015 20:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/240317#M14964</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-21T20:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a multiple sheets Excel output with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/303019#M17104</link>
      <description>I'm really late to reply here, but you can customize the sheet breaks by throwing another sheet interval = 'none' wherever you want.&lt;BR /&gt;&lt;BR /&gt;ods tagsets.excelxp options(sheet_interval="none" sheet_name = 'XX');&lt;BR /&gt;&lt;BR /&gt;code&lt;BR /&gt;&lt;BR /&gt;ods tagsets.excelxp options(sheet_interval="none" sheet_name = 'ZZ');&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Oct 2016 20:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/303019#M17104</guid>
      <dc:creator>wcp_fnfg</dc:creator>
      <dc:date>2016-10-06T20:17:00Z</dc:date>
    </item>
  </channel>
</rss>

