<?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 Sheet_name in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/573271#M34206</link>
    <description>&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="wow" href="https://www.edusys.co/images/wow.gif" target="_self"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wow" style="width: 500px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31027i817540B64F692C84/image-size/large?v=v2&amp;amp;px=999" role="button" title="wow" alt="wow" /&gt;&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 13 Jul 2019 05:55:10 GMT</pubDate>
    <dc:creator>varmadi</dc:creator>
    <dc:date>2019-07-13T05:55:10Z</dc:date>
    <item>
      <title>ODS Excel Sheet_name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572789#M34182</link>
      <description>&lt;P&gt;I'm trying to dynamically set the Excel tab names for a series of proc reports.&amp;nbsp; I'm looking through a set of Departments using a macro to control the loop.&amp;nbsp; I was hoping that I could use the title of the proc report as the tab name but this does not seem to be an option.&amp;nbsp; If I could do something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sheet_name = &amp;amp;title1 then it would work.&amp;nbsp; I tried feeding a macro variable to the sheet name but it looks like since the macro variable changes throughout the loop it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My structure is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods Excel OPTIONS (embedded_titles='yes' ) ;&lt;BR /&gt;ods escapechar='~';&lt;BR /&gt;%ShowUniversityLevel();&lt;BR /&gt;%callEmployeeBody();&lt;BR /&gt;%DepartmentsDisplay();&lt;/P&gt;
&lt;P&gt;ods Excel close;&lt;BR /&gt;ods Excel(id=VCU_Report_Printing1) close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572789#M34182</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2019-07-11T15:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Sheet_name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572790#M34183</link>
      <description>&lt;P&gt;I think it should work, I'm pretty sure I have done this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods Excel OPTIONS (embedded_titles='yes' sheet_name="&amp;amp;title1") ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There is probably a limitation on the number of characters that&amp;nbsp; can go into the sheet name.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572790#M34183</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-11T15:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Sheet_name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572834#M34184</link>
      <description>&lt;P&gt;You would need a separate ODS EXCEL OPTIONS statement prior to each sheet of output.&lt;/P&gt;
&lt;P&gt;Depending one what else is going on you likely need to be changing the sheet interval as well if you are expecting to have one tab per department with multiple report tables on each.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you don't show the looping code it is pretty hard to be more precise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 16:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572834#M34184</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-11T16:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Sheet_name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572844#M34185</link>
      <description>&lt;P&gt;Not sure if I can use it.&amp;nbsp; "WARNING: Apparent symbolic reference TITLE2 not resolved. "&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 17:02:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572844#M34185</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2019-07-11T17:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Sheet_name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572846#M34186</link>
      <description>&lt;P&gt;Found a good example:&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-multiple-sheet/td-p/225377" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-multiple-sheet/td-p/225377&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 17:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572846#M34186</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2019-07-11T17:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Sheet_name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572847#M34187</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5059"&gt;@DavidPhillips2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Not sure if I can use it.&amp;nbsp; "WARNING: Apparent symbolic reference TITLE2 not resolved. "&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You cannot use a macro variable you have not defined.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 17:03:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572847#M34187</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-11T17:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Sheet_name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572868#M34188</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5059"&gt;@DavidPhillips2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Are you saying the idea is to close and open the ODS Excel output to the process?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No.&lt;/P&gt;
&lt;P&gt;I don't have convenient examples as I generate little complicated ODS EXCEL output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ods excel file="something";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excel options=(sheet_interval='NONE'); to attempt to place multiple reports on one tab&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;proc report 1&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;proc report 2&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excel options=(sheet_interval='BYGROUP'); One tab per by value&lt;/P&gt;
&lt;P&gt;&amp;lt;proc report 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; by somevariable&lt;/P&gt;
&lt;P&gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;ods excel options=(sheet_interval='Table');&lt;/P&gt;
&lt;P&gt;&amp;lt;something that creates multiple tables, get one per tab&amp;gt;&lt;/P&gt;
&lt;P&gt;ods excel close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is a basic example.&lt;/P&gt;
&lt;P&gt;To make groups related output put you might want something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excel options=(sheet_interval='NONE'); to attempt to place multiple reports on one tab&lt;/P&gt;
&lt;P&gt;&amp;lt;proc report 1&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;proc report 2&amp;gt;&lt;/P&gt;
&lt;P&gt;ods excel options=(sheet_interval='TABLE); to force a "change" so that then NEXT interval is a different tab&lt;/P&gt;
&lt;P&gt;ods excel options=(sheet_interval='NONE'); to attempt to place multiple reports on&amp;nbsp;next tab&lt;/P&gt;
&lt;P&gt;&amp;lt;proc report 3&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;proc report 4&amp;gt;&lt;/P&gt;
&lt;P&gt;ods excel options=(sheet_interval='TABLE); to force a "change"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure whether table or page might work "better" as the dummy change or not.&lt;/P&gt;
&lt;P&gt;Of course each of those interval changes would likely be where to change the sheet_label or sheet_name as well.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 17:26:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/572868#M34188</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-11T17:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Sheet_name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/573271#M34206</link>
      <description>&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="wow" href="https://www.edusys.co/images/wow.gif" target="_self"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wow" style="width: 500px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31027i817540B64F692C84/image-size/large?v=v2&amp;amp;px=999" role="button" title="wow" alt="wow" /&gt;&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 05:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-Excel-Sheet-name/m-p/573271#M34206</guid>
      <dc:creator>varmadi</dc:creator>
      <dc:date>2019-07-13T05:55:10Z</dc:date>
    </item>
  </channel>
</rss>

