<?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 tabs in excel file in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-tabs-in-excel-file/m-p/276273#M16029</link>
    <description>&lt;P&gt;This should work:&lt;/P&gt;
&lt;PRE&gt;ods tagsets.excelxp file="s:\temp\rob\temp.xml" options(sheet_interval="none" sheet_name="First");
proc report data=sashelp.class nowd;
  columns _all_;
run;
proc report data=sashelp.class nowd;
  columns _all_;
run;
ods tagsets.excelxp options(sheet_interval="table" sheet_name="Next");
proc report data=sashelp.class nowd;
  columns _all_;
run;
ods tagsets.excelxp close;&lt;/PRE&gt;</description>
    <pubDate>Thu, 09 Jun 2016 14:21:10 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-06-09T14:21:10Z</dc:date>
    <item>
      <title>creating tabs in excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-tabs-in-excel-file/m-p/276261#M16028</link>
      <description>&lt;P&gt;I want to create&amp;nbsp;an excel file with two tabs, sheet1 and sheet2. I want table1 and table2 data&amp;nbsp;on a tab and table3 data&amp;nbsp;in the another tab. Below is my code. I tried all options for sheet_interval. The 'sheet_interval = none' option create one tab with three tables. All the other options (page, bygroup, table and proc) create three tabs. The table1 and table2 data come on two different tabs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;*******************************************************************************************************************************&lt;/P&gt;&lt;P&gt;ods listing close;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP style=journal file="excel_file.xls"&lt;/P&gt;&lt;P&gt;options(sheet_name=sheet1' autofilter='none' orientation='landscape'&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet_interval='none'&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SKIP_SPACE= '5');&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=table1 noobs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header) = { font_style=italic font_weight = bold font_face = "calibri" font_size = &lt;STRONG&gt;10&lt;/STRONG&gt;pt just = c}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(data) = {font_face = "Calibri" font_size = &lt;STRONG&gt;10&lt;/STRONG&gt;pt background=$nfmt.foreground=white};&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;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;print&lt;/STRONG&gt; data=table2 noobs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header) = { font_style=italic font_weight = bold font_face = "calibri" font_size = &lt;STRONG&gt;10&lt;/STRONG&gt;pt just = c}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(data) = {font_face = "Calibri" font_size = &lt;STRONG&gt;10&lt;/STRONG&gt;pt};&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;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP options(sheet_name='sheet2' autofilter='all' orientation='landscape'&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;frozen_headers='Yes');&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=table3 noobs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header) = { font_style=italic font_weight = bold font_face = "calibri" font_size = &lt;STRONG&gt;10&lt;/STRONG&gt;pt just = c}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(data) = {font_face = "Calibri" font_size = &lt;STRONG&gt;10&lt;/STRONG&gt;pt};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP close;&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;</description>
      <pubDate>Thu, 09 Jun 2016 14:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-tabs-in-excel-file/m-p/276261#M16028</guid>
      <dc:creator>sasmom</dc:creator>
      <dc:date>2016-06-09T14:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: creating tabs in excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-tabs-in-excel-file/m-p/276273#M16029</link>
      <description>&lt;P&gt;This should work:&lt;/P&gt;
&lt;PRE&gt;ods tagsets.excelxp file="s:\temp\rob\temp.xml" options(sheet_interval="none" sheet_name="First");
proc report data=sashelp.class nowd;
  columns _all_;
run;
proc report data=sashelp.class nowd;
  columns _all_;
run;
ods tagsets.excelxp options(sheet_interval="table" sheet_name="Next");
proc report data=sashelp.class nowd;
  columns _all_;
run;
ods tagsets.excelxp close;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jun 2016 14:21:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-tabs-in-excel-file/m-p/276273#M16029</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-09T14:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: creating tabs in excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-tabs-in-excel-file/m-p/276315#M16030</link>
      <description>&lt;P&gt;Using the following line will&amp;nbsp;tell Excel to start a new sheet. &amp;nbsp;Anything that follows this should be on the same tab. If you want three sheets, you'd have two of these lines - one before the code for each tab, and the initial statement of options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods tagsets.excelxp options(sheet_interval='none');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-tabs-in-excel-file/m-p/276315#M16030</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-09T17:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: creating tabs in excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-tabs-in-excel-file/m-p/276359#M16036</link>
      <description>&lt;P&gt;Thanks a lot! That worked.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 20:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-tabs-in-excel-file/m-p/276359#M16036</guid>
      <dc:creator>sasmom</dc:creator>
      <dc:date>2016-06-09T20:01:52Z</dc:date>
    </item>
  </channel>
</rss>

