<?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 &amp;amp; multiple sheets in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261963#M15554</link>
    <description>&lt;P&gt;ODS Excel is still buggy &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;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239419/highlight/true#M14880" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239419/highlight/true#M14880&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not very helpful...you may want to open a ticket with tech support.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll also move it to ODS reporting so perhaps Cynthia or someone else can see if there's a fix.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2016 01:38:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-04-07T01:38:08Z</dc:date>
    <item>
      <title>ODS excel &amp; multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261953#M15551</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to output to XLSX by using ODS EXCEL.&amp;nbsp; I want to output multiple tabs, and there are multiple proc in each tab.&amp;nbsp; here is my program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="c:\temp\temp.xlsx" options(sheet_interval="none" sheet_name="sheet 1");
ods graphics / height=400 width=800 noborder;
proc sgplot data=sashelp.cars;
&amp;nbsp;histogram msrp;
run;
proc print data=sashelp.class;
run;
ods excel options(sheet_interval="none" sheet_name="sheet 2");
proc sgplot data=sashelp.cars;
&amp;nbsp;histogram msrp;
run;
proc print data=sashelp.class;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even I specify two different sheet names, but since I use sheet_interval="none", so all the proc were output to "sheet 1" only.&lt;/P&gt;
&lt;P&gt;Is there any way to solve this issus?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 01:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261953#M15551</guid>
      <dc:creator>lfang</dc:creator>
      <dc:date>2016-04-07T01:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel &amp; multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261957#M15552</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;According to this blog&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2014/08/29/experimenting-with-ods-excel-to-create-spreadsheets-from-sas/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2014/08/29/experimenting-with-ods-excel-to-create-spreadsheets-from-sas/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;U&gt;&lt;STRONG&gt;ODS EXCEL overwrites any existing Excel file that you target&lt;/STRONG&gt;&lt;/U&gt;. That means that &lt;U&gt;&lt;STRONG&gt;you aren't going to use this method to&lt;/STRONG&gt;&lt;/U&gt; poke new values into an existing spreadsheet, or&lt;U&gt; &lt;STRONG&gt;add sheets to an existing workbook&lt;/STRONG&gt;&lt;/U&gt;. Compare that to PROC EXPORT DBMS=XLSX, which allows you to update an existing workbook by targeting just one sheet."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to investigate an alternative approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 00:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261957#M15552</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2016-04-07T00:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel &amp; multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261963#M15554</link>
      <description>&lt;P&gt;ODS Excel is still buggy &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;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239419/highlight/true#M14880" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-multiple-sheets-Excel-output-with-ODS/m-p/239419/highlight/true#M14880&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not very helpful...you may want to open a ticket with tech support.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll also move it to ODS reporting so perhaps Cynthia or someone else can see if there's a fix.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 01:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261963#M15554</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-07T01:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel &amp; multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261966#M15555</link>
      <description>&lt;P&gt;So it looks like a known bug &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;Here's the solution, via Andrea Zimmerman via the comments here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2014/08/29/experimenting-with-ods-excel-to-create-spreadsheets-from-sas/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2014/08/29/experimenting-with-ods-excel-to-create-spreadsheets-from-sas/&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Ok, got an answer from SAS tech support. It is an issue with SP3 that will hopefully be fixed with SP4. You can put everything on one tab, or one thing per tab, but if you want a couple things on one tab, and a couple things on the next tab, you have to trick SAS into creating the new tab.
ods excel file="C:\elever.xlsx";
ods excel options(sheet_name="SkoleElever" sheet_interval="none");
proc print data=sashelp.class;
run;
proc print data=sashelp.class;
run;
/* Add dummy table */
ods excel options(sheet_interval="table");
ods exclude all;
data _null_;
file print;
put _all_;
run;
ods select all;
ods excel options(sheet_interval="none");
proc tabulate data=sashelp.class;
class age sex;
table age, sex;
run;
proc print data=sashelp.class;
where age=12;
run;
ods EXCEL close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Apr 2016 01:41:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261966#M15555</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-07T01:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel &amp; multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261979#M15557</link>
      <description>Thank you Reeza, that dummy table works well!!!</description>
      <pubDate>Thu, 07 Apr 2016 03:07:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261979#M15557</guid>
      <dc:creator>lfang</dc:creator>
      <dc:date>2016-04-07T03:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel &amp; multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261984#M15558</link>
      <description>&lt;PRE&gt;
very interesting. It looks like you need reset these OPTIONS before make sheet_interval='non' happen again.



ods excel file="/folders/myfolders/temp.xlsx" options(sheet_interval="none" sheet_name="sheet 1");
ods graphics / height=400 width=800 noborder;
proc sgplot data=sashelp.cars;
 histogram msrp;
run;
proc print data=sashelp.class;
run;

ods excel options(sheet_interval="proc" sheet_name="sheet 2");
ods select none;
proc print data=sashelp.class;run;
ods select all;

ods excel options(sheet_interval="none" sheet_name="sheet 2");
proc sgplot data=sashelp.cars;
 histogram msrp;
run;
proc print data=sashelp.class;
run;
ods excel close;

&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Apr 2016 03:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/261984#M15558</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-04-07T03:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel &amp; multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/262013#M15559</link>
      <description>&lt;P&gt;The EXCELXP tagset works reliably for multiple sheets.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 08:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/262013#M15559</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-04-07T08:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel &amp; multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/262021#M15560</link>
      <description>&lt;P&gt;Tagsets doesn't support graphics, ODS excel does.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 09:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/262021#M15560</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-07T09:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel &amp; multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/339885#M18097</link>
      <description>So that is how that select all thing works! Looks like it needs to be turned 'on' when you reset the default destination of the first page.</description>
      <pubDate>Fri, 10 Mar 2017 05:01:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/339885#M18097</guid>
      <dc:creator>Schoolmaster</dc:creator>
      <dc:date>2017-03-10T05:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel &amp; multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/349307#M18331</link>
      <description>&lt;P&gt;This fix is better than another fix I saw earlier because you use the Table sheet interval.&amp;nbsp; But, Tech Support should take some time to put in a real fix for this.&amp;nbsp; Perhaps, put in another sheet_interval switch that basically does the dummy file call behind the scenes.&amp;nbsp; But hey, this fix is what I'm looking for right now, my clients won't care it's not exotic...... it works!!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 03:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/m-p/349307#M18331</guid>
      <dc:creator>Schoolmaster</dc:creator>
      <dc:date>2017-04-12T03:27:22Z</dc:date>
    </item>
  </channel>
</rss>

