<?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 - command an additional worksheet in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-command-an-additional-worksheet/m-p/415972#M19898</link>
    <description>Thanks!</description>
    <pubDate>Fri, 24 Nov 2017 09:52:30 GMT</pubDate>
    <dc:creator>RB1Kenobi</dc:creator>
    <dc:date>2017-11-24T09:52:30Z</dc:date>
    <item>
      <title>ODS Excel - command an additional worksheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-command-an-additional-worksheet/m-p/415866#M19890</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I'm using Enterprise Guide 7.1 (32bit) on a windows 10 PC.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The difficulty I have is controlling when a new worksheet is to be created, particularly when I want the worksheet to contain multiple procedures, so SHEET_INTERVAL='Proc' is no good for me.&lt;/P&gt;
&lt;P&gt;What I'm finding is the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SHEET_INTERVAL='NOW' generates an error message and doesn't seem to be valid.&lt;/LI&gt;
&lt;LI&gt;SHEET_INTERVAL='none' doesn't seem to work if used for two successive worksheets.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All insights into this are welcome, I look forward to your input.&lt;/P&gt;
&lt;P&gt;RB1&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

ods listing close;
ods results off;

* Open the workbook and start the first worksheet. ;
ods Excel file = "C:\.....\Test.xlsx" 
	style=htmlblue
	options(
		sheet_name = "One Proc" 
		);

proc print data=sashelp.cars;
run;


* Commence a second worksheet with multiple print procedures contained within it. ;
ods Excel 
	options(
		sheet_name = "Two Procs" 
		sheet_interval='none'
		);

proc print data=sashelp.class;
run;


proc print data=sashelp.classfit;
run;


* A third worksheet with two printing procedures.  NOW or NONE or omitted SHEET_INTERVAL do not work as I expected, 
 resulting in the second worksheet containing 4 print outputs.;
ods Excel 
	options(
		sheet_name = "Two more Procs" 
/*		sheet_interval='now'*/
		sheet_interval='none'

		);

		proc print data=sashelp.class;
		run;

		proc print data=sashelp.fish;
		run;


ods excel close;
ODS LISTING;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Nov 2017 16:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-command-an-additional-worksheet/m-p/415866#M19890</guid>
      <dc:creator>RB1Kenobi</dc:creator>
      <dc:date>2017-11-23T16:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel - command an additional worksheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-command-an-additional-worksheet/m-p/415871#M19891</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;This is a known issue. The solution is on here (I posted it) but it's originally from an ODS EXCEL blog post by Chris Hemidinger. I'm off to meetings, but if you don't find the response, post back and I can help you find it later on.&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/td-p/261953" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/td-p/261953&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 17:00:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-command-an-additional-worksheet/m-p/415871#M19891</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-23T17:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel - command an additional worksheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-command-an-additional-worksheet/m-p/415972#M19898</link>
      <description>Thanks!</description>
      <pubDate>Fri, 24 Nov 2017 09:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-command-an-additional-worksheet/m-p/415972#M19898</guid>
      <dc:creator>RB1Kenobi</dc:creator>
      <dc:date>2017-11-24T09:52:30Z</dc:date>
    </item>
  </channel>
</rss>

