<?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 Creating a contents page in RTF without needing to manually 'Update Fields' in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-contents-page-in-RTF-without-needing-to-manually/m-p/622632#M23757</link>
    <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently discovered that it is possible to create a contents page for my RTF files (and they need to be in RTF) using the below options&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;ods rtf file=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"C:\dir\reports.rtf"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt; contents=yes toc_data&lt;/STRONG&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;The issue I have is that I would need to manually open each RTF document, right click and select 'Update Field' to generate a table of contents. This has two major issues:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(1) It alters the modification date because the document would need to be&amp;nbsp;saved &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(2) It can be very time consuming if there are many outputs&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Is there a way to ensure that SAS automatically adds the contents page to an output without the need to open the document and manually create the table of contents though the 'Update Field' setting?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Your help on this would be most appreciated. If this is not possible at all then this would prevent many headaches &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 09:31:05 GMT</pubDate>
    <dc:creator>Mark_lmnt</dc:creator>
    <dc:date>2020-02-06T09:31:05Z</dc:date>
    <item>
      <title>Creating a contents page in RTF without needing to manually 'Update Fields'</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-contents-page-in-RTF-without-needing-to-manually/m-p/622632#M23757</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently discovered that it is possible to create a contents page for my RTF files (and they need to be in RTF) using the below options&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;ods rtf file=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"C:\dir\reports.rtf"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt; contents=yes toc_data&lt;/STRONG&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;The issue I have is that I would need to manually open each RTF document, right click and select 'Update Field' to generate a table of contents. This has two major issues:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(1) It alters the modification date because the document would need to be&amp;nbsp;saved &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(2) It can be very time consuming if there are many outputs&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Is there a way to ensure that SAS automatically adds the contents page to an output without the need to open the document and manually create the table of contents though the 'Update Field' setting?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Your help on this would be most appreciated. If this is not possible at all then this would prevent many headaches &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 09:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-contents-page-in-RTF-without-needing-to-manually/m-p/622632#M23757</guid>
      <dc:creator>Mark_lmnt</dc:creator>
      <dc:date>2020-02-06T09:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a contents page in RTF without needing to manually 'Update Fields'</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-contents-page-in-RTF-without-needing-to-manually/m-p/623056#M23758</link>
      <description>&lt;P&gt;You can find some helpful tips here for creating your SAS output&amp;nbsp;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/books/ods-techniques-tips-for-enhancing-your-sas-output/66928_excerpt.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/books/ods-techniques-tips-for-enhancing-your-sas-output/66928_excerpt.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 14:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-contents-page-in-RTF-without-needing-to-manually/m-p/623056#M23758</guid>
      <dc:creator>SAS_Cares</dc:creator>
      <dc:date>2020-02-07T14:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a contents page in RTF without needing to manually 'Update Fields'</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-contents-page-in-RTF-without-needing-to-manually/m-p/623098#M23759</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Although Kevin's book is excellent, it's probably not going to answer your Table of Contents question. As far as I know, in an RTF document, when it is opened in Word, if the RTF document has the TOC field codes, you have to click to Update Fields. I don't know of any way around that except for some kind of Word/VB automation and then you are going to run into the same problem of the document date and probably the format changing (from RTF to .doc or .docx).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; And I just tested with ODS WORD in 9.4M6 (preproduction destination) and I still had to do Update Field to make the TOC visible. You might want to open a track with Tech Support to find out whether there's going to be a way to NOT have to update field when the destination is production.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 16:14:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-contents-page-in-RTF-without-needing-to-manually/m-p/623098#M23759</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-02-07T16:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a contents page in RTF without needing to manually 'Update Fields'</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-contents-page-in-RTF-without-needing-to-manually/m-p/624995#M23778</link>
      <description>Thanks for getting back to me and also providing ODD tips links. I will take your advice and attempt to find a way of getting around this. Thanks again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Sat, 15 Feb 2020 07:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-contents-page-in-RTF-without-needing-to-manually/m-p/624995#M23778</guid>
      <dc:creator>Mark_lmnt</dc:creator>
      <dc:date>2020-02-15T07:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a contents page in RTF without needing to manually 'Update Fields'</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-contents-page-in-RTF-without-needing-to-manually/m-p/648356#M24095</link>
      <description>&lt;P&gt;Hi Cynthia and Mark,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An RTF table made outside of MS Word was meant to be used as an in-text table in a report.&amp;nbsp; In the old days, Word let you make a link to the file and every time we updated the table we told the medical writer, and every time the writer opens the report, all the links would be updated, including the titles. So you can't avoid the date change of the report, but you can fix the production date of the table.&amp;nbsp; If you have a few rtf tables as a standalone report, I think SAS can add or you can figure it out an option to generate a cover page like the one below, which clearly let you know where to click, or you send the report to your client and let them to click.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jianmin Long&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jianmin_0-1589685068421.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39532i4BE40253EF86009F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jianmin_0-1589685068421.png" alt="Jianmin_0-1589685068421.png" /&gt;&lt;/span&gt;&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>Sun, 17 May 2020 03:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-contents-page-in-RTF-without-needing-to-manually/m-p/648356#M24095</guid>
      <dc:creator>Jianmin</dc:creator>
      <dc:date>2020-05-17T03:22:06Z</dc:date>
    </item>
  </channel>
</rss>

