<?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 options(contents='ON') - but no table of contents in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-options-contents-ON-but-no-table-of-contents/m-p/541069#M22495</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am trying to generate a sheet with a table of contents with my ods excel statement. I am not quite sure of how this works but I'm hoping that it will take the titles and title2:s and display them on a separate sheet. However, no table of contents appears in my Excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several proc reports in my program. Is there anyone out there who knows what I am doing wrong or if there is something in my SAS installation that is missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use SAS Enterprise Guide version 7.15.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="&amp;amp;ROOTDIR.\&amp;amp;FILENAME...xlsx";
ods excel options(embedded_titles='YES' sheet_interval='proc' autofilter='all' contents='yes' );

ods excel options(sheet_name='TABLE1');
title "...";
title2 "...";

proc report;
etc etc...
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Mar 2019 13:32:44 GMT</pubDate>
    <dc:creator>vanja</dc:creator>
    <dc:date>2019-03-07T13:32:44Z</dc:date>
    <item>
      <title>ODS Excel options(contents='ON') - but no table of contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-options-contents-ON-but-no-table-of-contents/m-p/541069#M22495</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am trying to generate a sheet with a table of contents with my ods excel statement. I am not quite sure of how this works but I'm hoping that it will take the titles and title2:s and display them on a separate sheet. However, no table of contents appears in my Excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several proc reports in my program. Is there anyone out there who knows what I am doing wrong or if there is something in my SAS installation that is missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use SAS Enterprise Guide version 7.15.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="&amp;amp;ROOTDIR.\&amp;amp;FILENAME...xlsx";
ods excel options(embedded_titles='YES' sheet_interval='proc' autofilter='all' contents='yes' );

ods excel options(sheet_name='TABLE1');
title "...";
title2 "...";

proc report;
etc etc...
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Mar 2019 13:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-options-contents-ON-but-no-table-of-contents/m-p/541069#M22495</guid>
      <dc:creator>vanja</dc:creator>
      <dc:date>2019-03-07T13:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel options(contents='ON') - but no table of contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-options-contents-ON-but-no-table-of-contents/m-p/541088#M22496</link>
      <description>&lt;P&gt;Going to guess that your missing ods proclabel per this from a quick use of the search bar!&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Controlling-Visible-TOC-Levels-in-Files-Created-using-the-ODS/td-p/341265" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Controlling-Visible-TOC-Levels-in-Files-Created-using-the-ODS/td-p/341265&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 14:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-options-contents-ON-but-no-table-of-contents/m-p/541088#M22496</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-03-07T14:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel options(contents='ON') - but no table of contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-options-contents-ON-but-no-table-of-contents/m-p/541120#M22499</link>
      <description>&lt;P&gt;Thank you for trying to help me!&amp;nbsp;ODS PROCLABEL alone&amp;nbsp;didn't do the trick. By examining the code to the case you referred to I realized that&amp;nbsp;instead of dividing the "ods excel file" and "ods excel options" into two lines of code and put it on the same line&amp;nbsp;I actually got a Table of Contents.&amp;nbsp;It is not very pretty&amp;nbsp;and I get some lines in my table of contents that I would rather not have;&lt;/P&gt;&lt;P&gt;"Report"&lt;/P&gt;&lt;P&gt;"Table 1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But still, good progress!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="&amp;amp;ROOTDIR.&amp;amp;FILENAME..xlsx"
          options(embedded_titles='YES' contents='yes' autofilter='on' sheet_interval='proc');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Mar 2019 15:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-options-contents-ON-but-no-table-of-contents/m-p/541120#M22499</guid>
      <dc:creator>vanja</dc:creator>
      <dc:date>2019-03-07T15:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel options(contents='ON') - but no table of contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-options-contents-ON-but-no-table-of-contents/m-p/541321#M22503</link>
      <description>&lt;P&gt;Great, you can mark your own response as the correct answer.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 08:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-options-contents-ON-but-no-table-of-contents/m-p/541321#M22503</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-03-08T08:02:59Z</dc:date>
    </item>
  </channel>
</rss>

