<?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 ODS EXCEL MULTIPLE TABS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/482132#M21360</link>
    <description>&lt;P&gt;Hi, All.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue while exporting proc report to excel using ODS. I am using a macro which has all the names of individual persons and individual&amp;nbsp;excel tabs&amp;nbsp;needs to be created for every unique person in a single excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am using the below code where it is generating only one excel&amp;nbsp;tab &amp;nbsp;for only the last person in the macro . I am giving macro name in the sheet_name option. I want to create individual excel tabs for every person in the macro. please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;ods excel file=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"\c\desktop\output\temp.xlsx"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; options (sheet_interval=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"none"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sheet_name=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;Name"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; embedded_titles=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"YES"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 28 Jul 2018 02:16:19 GMT</pubDate>
    <dc:creator>VISHNU239</dc:creator>
    <dc:date>2018-07-28T02:16:19Z</dc:date>
    <item>
      <title>ODS EXCEL MULTIPLE TABS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/482132#M21360</link>
      <description>&lt;P&gt;Hi, All.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue while exporting proc report to excel using ODS. I am using a macro which has all the names of individual persons and individual&amp;nbsp;excel tabs&amp;nbsp;needs to be created for every unique person in a single excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am using the below code where it is generating only one excel&amp;nbsp;tab &amp;nbsp;for only the last person in the macro . I am giving macro name in the sheet_name option. I want to create individual excel tabs for every person in the macro. please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;ods excel file=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"\c\desktop\output\temp.xlsx"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; options (sheet_interval=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"none"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sheet_name=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;Name"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; embedded_titles=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"YES"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jul 2018 02:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/482132#M21360</guid>
      <dc:creator>VISHNU239</dc:creator>
      <dc:date>2018-07-28T02:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL MULTIPLE TABS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/482140#M21361</link>
      <description>&lt;P&gt;Any reason you can't just use by group processing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.cars out=cars; by make;
run;

ods excel file='/folders/myfolders/demo.xlsx' options (sheet_interval='bygroup');

proc print data=cars;
by make;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Anyways, if you can't for some reason you can control the sheet interval with the Sheet_interval and Sheet_label options in the ODS OPTIONS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185592"&gt;@VISHNU239&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, All.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an issue while exporting proc report to excel using ODS. I am using a macro which has all the names of individual persons and individual&amp;nbsp;excel tabs&amp;nbsp;needs to be created for every unique person in a single excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I am using the below code where it is generating only one excel&amp;nbsp;tab &amp;nbsp;for only the last person in the macro . I am giving macro name in the sheet_name option. I want to create individual excel tabs for every person in the macro. please help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;ods excel file=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"\c\desktop\output\temp.xlsx"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; options (sheet_interval=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"none"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sheet_name=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"&amp;amp;Name"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; embedded_titles=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"YES"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jul 2018 03:17:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/482140#M21361</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-28T03:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL MULTIPLE TABS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/482499#M21369</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185592"&gt;@VISHNU239&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, All.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an issue while exporting proc report to excel using ODS. I am using a macro which has all the names of individual persons and individual&amp;nbsp;excel tabs&amp;nbsp;needs to be created for every unique person in a single excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I am using the below code where it is generating only one excel&amp;nbsp;tab &amp;nbsp;for only the last person in the macro . I am giving macro name in the sheet_name option. I want to create individual excel tabs for every person in the macro. please help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;ods excel file=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"\c\desktop\output\temp.xlsx"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; options (sheet_interval=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"none"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sheet_name=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;Name"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; embedded_titles=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"YES"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What do you think the option sheet_interval="none" does? Consider: SHEET=TAB&amp;nbsp;in concept. Then read that option carefully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BY groups are almost always the way to go unless you have two or more different elements per "tab" that come from different procedures.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 15:18:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/482499#M21369</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-30T15:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL MULTIPLE TABS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/503588#M21886</link>
      <description>&lt;P&gt;I have the same issue as the original post. I am converting an existing macro from ods tagsets excelxp to ods excel, but when I change to ods excel now everything is getting dumped into a single tab.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code uses&amp;nbsp;syntax like this;&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;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods excel 
  file = "blah.xlsx"
  options(
    sheet_interval ='none'
    sheet_name ='Tab1Name'
  )
;

{proc report here}

ods excel 
  options(
    sheet_interval ='none'
    sheet_name ='Tab2Name'
  )
;

{another proc report here}

etc.&lt;/PRE&gt;&lt;P&gt;In this case, everything is dumped to Tab1Name and Tab2Name is not getting created.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 22:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/503588#M21886</guid>
      <dc:creator>EStrom1</dc:creator>
      <dc:date>2018-10-11T22:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL MULTIPLE TABS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/503594#M21887</link>
      <description>This was a bug in the early version of SAS with ODS EXCEL. The easiest best fix is an upgrade. Otherwise, I have posted a workaround on the forums here somewhere.</description>
      <pubDate>Thu, 11 Oct 2018 23:05:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/503594#M21887</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-11T23:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL MULTIPLE TABS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/503748#M21889</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; I'm running 9.4 M5.&amp;nbsp; I thought this was the latest maintenance release, no?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 15:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/503748#M21889</guid>
      <dc:creator>EStrom1</dc:creator>
      <dc:date>2018-10-12T15:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL MULTIPLE TABS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/503798#M21890</link>
      <description>&lt;P&gt;Ok, got the answer from SAS tech support.&amp;nbsp; I need to remove the sheet_interval="none" option.&amp;nbsp; Although this worked with ExcelXP tagset, with ODS Excel, this option is telling SAS to put everything on one tab.&amp;nbsp; I could manually force a new tab with a sheet_interval="now" option; however this is the default behavior, so if I just avoid the sheet_interval="none" statement, it does the trick.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the code should look like this&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods excel 
  file = "blah.xlsx"
  options(
    sheet_name ='Tab1Name'
  )
;

{proc report here}

ods excel 
  options(
    sheet_name ='Tab2Name'
  )
;

{another proc report here}

etc.&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Oct 2018 17:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-MULTIPLE-TABS/m-p/503798#M21890</guid>
      <dc:creator>EStrom1</dc:creator>
      <dc:date>2018-10-12T17:00:51Z</dc:date>
    </item>
  </channel>
</rss>

