<?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: How do I get ODS WORD to print contents within TOC? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-ODS-WORD-to-print-contents-within-TOC/m-p/856823#M338535</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1675340404040.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80023i16EF94D13B84AC74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1675340404040.png" alt="Ksharp_0-1675340404040.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 12:20:11 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-02-02T12:20:11Z</dc:date>
    <item>
      <title>How do I get ODS WORD to print contents within TOC?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-ODS-WORD-to-print-contents-within-TOC/m-p/856733#M338496</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working in SAS 9.4 (TS1M7) within Linux. I am trying out the TOC options with the ODS WORD statement and noticed that nothing shows up in the table besides the title "Table of Contents". I closed and re-opened the SAS session and tried a simple example but still nothing showed up. Anyone have ideas how I can get the contents to print within the Table of Contents?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods word file="~/ibm/toc_text.docx" options(contents="on" toc_data="on");
title "t1";
title2 "t2";
ods proclabel="test";
proc print data=sashelp.air noobs label;
run;
ods word close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 20:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-ODS-WORD-to-print-contents-within-TOC/m-p/856733#M338496</guid>
      <dc:creator>_Levi_</dc:creator>
      <dc:date>2023-02-01T20:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get ODS WORD to print contents within TOC?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-ODS-WORD-to-print-contents-within-TOC/m-p/856761#M338513</link>
      <description>&lt;P&gt;I found this paper by the developer of ODS Word (I think)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4265-2020.pdf" target="_blank" rel="noopener"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4265-2020.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran it on 9.4M7 windows, I can see the "Table of Contents" heading and a field:&amp;nbsp;&amp;nbsp;{TOC \f C \h \z}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I hit Alt-F9 in Word, it will display the actual table of contents instead of the field code.&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 22:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-ODS-WORD-to-print-contents-within-TOC/m-p/856761#M338513</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-02-01T22:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get ODS WORD to print contents within TOC?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-ODS-WORD-to-print-contents-within-TOC/m-p/856823#M338535</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1675340404040.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80023i16EF94D13B84AC74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1675340404040.png" alt="Ksharp_0-1675340404040.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 12:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-ODS-WORD-to-print-contents-within-TOC/m-p/856823#M338535</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-02-02T12:20:11Z</dc:date>
    </item>
  </channel>
</rss>

