<?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 to create a table of contents with ODS PDF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-a-table-of-contents-with-ODS-PDF/m-p/701280#M24696</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; When I run your code, this is the PDF file I get:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1606236412138.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51969i7D05DE62E96F03D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1606236412138.png" alt="Cynthia_sas_0-1606236412138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am displaying it inside Acrobat Reader in 2 page view. The only thing I changed in your code was THIS:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf file="c:\temp\MyDefaultToc.pdf" contents=yes bookmarklist=hide;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; To direct the output to my C: drive. If you are trying to open the output in EG, you may not be seeing the Table of Contents. One thing you can try is to put&amp;nbsp; &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/FONT&gt; before the ODS PDF statement like this:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf file="c:\temp\MyDefaultToc.pdf" contents=yes bookmarklist=hide;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would turn off all the destinations you might have turned on under Tools--&amp;gt;Options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are having issues with ODS PDF, it might be your version of SAS or your version of Acrobat Reader. On the other hand, you may only need to go outside of Enterprise Guide to open the file. I used Windows File Explorer to find the file because I prefer opening the file directly from Windows than from inside Enterprise Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 16:56:30 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2020-11-24T16:56:30Z</dc:date>
    <item>
      <title>How to create a table of contents with ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-a-table-of-contents-with-ODS-PDF/m-p/701192#M24693</link>
      <description>&lt;P&gt;I'm tried to create a table of contents using the example in the SAS documentation (see the example below). I'm not getting the same results my pdf file does not contain a table of contents, please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS 9.4M4 on SAS EG 7.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;title "Create a Table of Contents";
options nodate;&lt;/PRE&gt;&lt;PRE&gt;ods pdf file="&lt;SPAN class="xis-userSuppliedValue"&gt;pathname-to-MyDefaultToc&lt;/SPAN&gt;.pdf" contents=yes bookmarklist=hide;&lt;/PRE&gt;&lt;PRE&gt;proc print data=sashelp.cars;
run;

proc print data=sashelp.class;
run;&lt;/PRE&gt;&lt;PRE&gt;ods pdf close;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 12:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-a-table-of-contents-with-ODS-PDF/m-p/701192#M24693</guid>
      <dc:creator>Athenkosi</dc:creator>
      <dc:date>2020-11-24T12:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table of contents with ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-a-table-of-contents-with-ODS-PDF/m-p/701202#M24694</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just ran code and here is what I got, a page that has a title of Table of Contents within the PDF, as well as links to the proc prints to sashelp.cars.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CarmineVerrell_0-1606221656207.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51960i3D4C6868BA9525AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CarmineVerrell_0-1606221656207.png" alt="CarmineVerrell_0-1606221656207.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 12:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-a-table-of-contents-with-ODS-PDF/m-p/701202#M24694</guid>
      <dc:creator>CarmineVerrell</dc:creator>
      <dc:date>2020-11-24T12:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table of contents with ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-a-table-of-contents-with-ODS-PDF/m-p/701259#M24695</link>
      <description>&lt;P&gt;Thanks for the response. If possible may you please attach the pdf file that you generated so I can view it on my side, I suspect this issue has something to do with my Adobe reader setttings&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 15:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-a-table-of-contents-with-ODS-PDF/m-p/701259#M24695</guid>
      <dc:creator>Athenkosi</dc:creator>
      <dc:date>2020-11-24T15:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table of contents with ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-a-table-of-contents-with-ODS-PDF/m-p/701280#M24696</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; When I run your code, this is the PDF file I get:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1606236412138.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51969i7D05DE62E96F03D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1606236412138.png" alt="Cynthia_sas_0-1606236412138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am displaying it inside Acrobat Reader in 2 page view. The only thing I changed in your code was THIS:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf file="c:\temp\MyDefaultToc.pdf" contents=yes bookmarklist=hide;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; To direct the output to my C: drive. If you are trying to open the output in EG, you may not be seeing the Table of Contents. One thing you can try is to put&amp;nbsp; &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/FONT&gt; before the ODS PDF statement like this:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf file="c:\temp\MyDefaultToc.pdf" contents=yes bookmarklist=hide;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would turn off all the destinations you might have turned on under Tools--&amp;gt;Options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are having issues with ODS PDF, it might be your version of SAS or your version of Acrobat Reader. On the other hand, you may only need to go outside of Enterprise Guide to open the file. I used Windows File Explorer to find the file because I prefer opening the file directly from Windows than from inside Enterprise Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 16:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-a-table-of-contents-with-ODS-PDF/m-p/701280#M24696</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-11-24T16:56:30Z</dc:date>
    </item>
  </channel>
</rss>

