<?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 remove the hyperlink from the title of TOC in PDF in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960125#M374511</link>
    <description>&lt;P&gt;The code I used is blow:&lt;/P&gt;&lt;DIV&gt;/*Create table and save it to ods document as temp file*/&lt;/DIV&gt;&lt;DIV&gt;ods document name=work.temp(write) ;&lt;/DIV&gt;&lt;DIV&gt;ods listing close;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc report data=tfl.file1 nowd headline center missing split='^' spacing=0 contents="";&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;by pg;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;column pg ord1-ord4 col0 col0_1 col1-col3 margin;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define pg/ order noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define ord1/ order=internal noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define ord2/ order=internal noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define ord3/ order=internal noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define ord4/ order=internal noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define col0 / display "Disposition" style(header)=[just=left] style(column)=[just=left cellwidth=4.5in] flow;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define col0_1 / display "Statistic" style(header)=[just=left] style(column)=[just=left cellwidth=.7in] flow;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define col1 / display "A" style(header)=[just=c] style(column)=[just=c cellwidth=1in] flow;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define col2 / display "B" style(header)=[just=c] style(column)=[just=c cellwidth=1in] flow;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define col3 / display "Total" style(header)=[just=c] style(column)=[just=c cellwidth=1in] flow;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define margin/ display noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;break before pg / page contents="";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;compute margin;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if margin=1 then call define("col0", "style", "style=[leftmargin=.14in]");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if margin=2 then call define("col0", "style", "style=[leftmargin=.28in]");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;endcomp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%long_foot;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ods document close;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ods listing;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*Keep bookmark in the first page only.*/&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%global tpg;&lt;/DIV&gt;&lt;DIV&gt;%macro doc;&lt;/DIV&gt;&lt;DIV&gt;proc document;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;doc;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;doc name = work.temp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;list/levels=all;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;quit;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%if &amp;amp;tt4. ne %then %do;&lt;/DIV&gt;&lt;DIV&gt;proc document name=work.temp(update);&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;make \first;dir \first#1;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;setlabel\first#1 "%sysfunc(strip(&amp;amp;tt1)) %sysfunc(strip(&amp;amp;tt2)) %sysfunc(strip(&amp;amp;tt3)) - %sysfunc(strip(&amp;amp;tt4))";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; %do z=1 %to &amp;amp;tpg.; copy \Report#1\ByGroup&amp;amp;z.#1\Report#1 to ^; %end;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;quit;&lt;/DIV&gt;&lt;DIV&gt;%end;&lt;/DIV&gt;&lt;DIV&gt;%else %do;&lt;/DIV&gt;&lt;DIV&gt;proc document name=work.temp(update);&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;make \first;dir \first#1;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;setlabel\first#1 "%sysfunc(strip(&amp;amp;tt1)) %sysfunc(strip(&amp;amp;tt2)) - %sysfunc(strip(&amp;amp;tt3))";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; %do z=1 %to &amp;amp;tpg.; copy \Report#1\ByGroup&amp;amp;z.#1\Report#1 to ^; %end;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;quit;&lt;/DIV&gt;&lt;DIV&gt;%end;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%symdel tt1 tt2 tt3 tt4;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%mend doc;&lt;/DIV&gt;&lt;DIV&gt;%doc;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;ods listing close;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*Output table*/&lt;/DIV&gt;&lt;DIV&gt;ods document name=tfl.&amp;amp;outfile.(write) ;&lt;/DIV&gt;&lt;DIV&gt;ods rtf file="&amp;amp;outdir./file1.rtf" style=stlrtf startpage=yes;&lt;/DIV&gt;&lt;DIV&gt;ods pdf file="&amp;amp;outdir./file1.pdf" style=stlpdf startpage=yes;&lt;/DIV&gt;&lt;DIV&gt;proc document name=work.temp(update);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;replay\first ; run; quit;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ods _all_ close;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The file2 was created using the same code but different dataset.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Feb 2025 01:45:05 GMT</pubDate>
    <dc:creator>renee_njc</dc:creator>
    <dc:date>2025-02-25T01:45:05Z</dc:date>
    <item>
      <title>How to remove the hyperlink from the title of TOC in PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/959905#M374482</link>
      <description>&lt;P&gt;When creating the printable TOC page in PDF, there is a hyperlink in the TOC title.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to update the proc template but it doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to remove the hyperlink from the TOC title?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My code for creating the PDF file is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define style stlpdfx;&lt;BR /&gt;parent=styles.pearl;&lt;/P&gt;&lt;P&gt;class ContentTitle from ContentTitle /&lt;BR /&gt;fontweight = bold&lt;BR /&gt;color=dark blue&lt;BR /&gt;margintop=12pt&lt;BR /&gt;pretext='My Customized Title'&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;options pageno=2;&lt;BR /&gt;ods pdf file="&amp;amp;outdir./testfile.pdf" style=stlpdfx contents = yes;&lt;/P&gt;&lt;P&gt;proc document name=tfl.file1;&lt;BR /&gt;replay;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc document name=tfl.file2;&lt;BR /&gt;replay;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;ods pdf close;&lt;BR /&gt;ODS LISTING;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 09:37:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/959905#M374482</guid>
      <dc:creator>renee_njc</dc:creator>
      <dc:date>2025-02-21T09:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the hyperlink from the title of TOC in PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960086#M374503</link>
      <description>&lt;P&gt;Please show the SAS code for the step that produced the document files (&lt;SPAN&gt;tfl.file1 and&amp;nbsp;tfl.file2). It is most probable that this is the code that inserted the hyperlink.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 13:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960086#M374503</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2025-02-24T13:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the hyperlink from the title of TOC in PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960125#M374511</link>
      <description>&lt;P&gt;The code I used is blow:&lt;/P&gt;&lt;DIV&gt;/*Create table and save it to ods document as temp file*/&lt;/DIV&gt;&lt;DIV&gt;ods document name=work.temp(write) ;&lt;/DIV&gt;&lt;DIV&gt;ods listing close;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc report data=tfl.file1 nowd headline center missing split='^' spacing=0 contents="";&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;by pg;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;column pg ord1-ord4 col0 col0_1 col1-col3 margin;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define pg/ order noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define ord1/ order=internal noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define ord2/ order=internal noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define ord3/ order=internal noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define ord4/ order=internal noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define col0 / display "Disposition" style(header)=[just=left] style(column)=[just=left cellwidth=4.5in] flow;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define col0_1 / display "Statistic" style(header)=[just=left] style(column)=[just=left cellwidth=.7in] flow;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define col1 / display "A" style(header)=[just=c] style(column)=[just=c cellwidth=1in] flow;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define col2 / display "B" style(header)=[just=c] style(column)=[just=c cellwidth=1in] flow;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define col3 / display "Total" style(header)=[just=c] style(column)=[just=c cellwidth=1in] flow;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define margin/ display noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;break before pg / page contents="";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;compute margin;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if margin=1 then call define("col0", "style", "style=[leftmargin=.14in]");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if margin=2 then call define("col0", "style", "style=[leftmargin=.28in]");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;endcomp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%long_foot;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ods document close;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ods listing;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*Keep bookmark in the first page only.*/&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%global tpg;&lt;/DIV&gt;&lt;DIV&gt;%macro doc;&lt;/DIV&gt;&lt;DIV&gt;proc document;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;doc;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;doc name = work.temp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;list/levels=all;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;quit;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%if &amp;amp;tt4. ne %then %do;&lt;/DIV&gt;&lt;DIV&gt;proc document name=work.temp(update);&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;make \first;dir \first#1;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;setlabel\first#1 "%sysfunc(strip(&amp;amp;tt1)) %sysfunc(strip(&amp;amp;tt2)) %sysfunc(strip(&amp;amp;tt3)) - %sysfunc(strip(&amp;amp;tt4))";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; %do z=1 %to &amp;amp;tpg.; copy \Report#1\ByGroup&amp;amp;z.#1\Report#1 to ^; %end;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;quit;&lt;/DIV&gt;&lt;DIV&gt;%end;&lt;/DIV&gt;&lt;DIV&gt;%else %do;&lt;/DIV&gt;&lt;DIV&gt;proc document name=work.temp(update);&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;make \first;dir \first#1;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;setlabel\first#1 "%sysfunc(strip(&amp;amp;tt1)) %sysfunc(strip(&amp;amp;tt2)) - %sysfunc(strip(&amp;amp;tt3))";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; %do z=1 %to &amp;amp;tpg.; copy \Report#1\ByGroup&amp;amp;z.#1\Report#1 to ^; %end;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;quit;&lt;/DIV&gt;&lt;DIV&gt;%end;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%symdel tt1 tt2 tt3 tt4;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%mend doc;&lt;/DIV&gt;&lt;DIV&gt;%doc;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;ods listing close;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*Output table*/&lt;/DIV&gt;&lt;DIV&gt;ods document name=tfl.&amp;amp;outfile.(write) ;&lt;/DIV&gt;&lt;DIV&gt;ods rtf file="&amp;amp;outdir./file1.rtf" style=stlrtf startpage=yes;&lt;/DIV&gt;&lt;DIV&gt;ods pdf file="&amp;amp;outdir./file1.pdf" style=stlpdf startpage=yes;&lt;/DIV&gt;&lt;DIV&gt;proc document name=work.temp(update);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;replay\first ; run; quit;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ods _all_ close;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The file2 was created using the same code but different dataset.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Feb 2025 01:45:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960125#M374511</guid>
      <dc:creator>renee_njc</dc:creator>
      <dc:date>2025-02-25T01:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the hyperlink from the title of TOC in PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960130#M374512</link>
      <description>&lt;P&gt;What does the Hyperlink link to?&lt;/P&gt;
&lt;P&gt;What code does your %LONG_FOOT macro produce?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you recreate the issue without all of the macro code?&lt;/P&gt;
&lt;P&gt;If not the eliminate the macro code by first running with the MPRINT option turned on (or perhaps even the MFILE option) and try running the generated code in a new session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now that you have the actual code try making it simpler.&amp;nbsp; Replace your complicate PROC REPORT with something simpler.&amp;nbsp; Perhaps something as simple as :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.class(obs=10);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do you still get the hyperlink?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 03:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960130#M374512</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-02-25T03:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the hyperlink from the title of TOC in PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960132#M374513</link>
      <description>&lt;P&gt;The hyperlink in the "Table of Contents" is linked to the first file.&amp;nbsp;&lt;BR /&gt;I tried the simple code and the hyperlink still exists.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;%let outdir = C:/User/temp;
ods pdf file="&amp;amp;outdir./test.pdf" style=stlpdf contents = yes ;

proc report data=sashelp.class(obs=10);
run;

proc report data=sashelp.class(obs=20);
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2025 04:38:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960132#M374513</guid>
      <dc:creator>renee_njc</dc:creator>
      <dc:date>2025-02-25T04:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the hyperlink from the title of TOC in PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960148#M374517</link>
      <description>&lt;P&gt;Isn't that the point of a table of contents?&lt;/P&gt;
&lt;P&gt;They are not links to external files, they are links to locations with this file where the item listed in the table of contents can be found.&lt;/P&gt;
&lt;P&gt;Is there a reason why they cause problems?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 14:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960148#M374517</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-02-25T14:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the hyperlink from the title of TOC in PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960204#M374524</link>
      <description>&lt;P&gt;Yes, so I am ok with the hyperlink in the contents of TOC (the red part in the screenshot).&lt;/P&gt;&lt;P&gt;I want to remove the hyperlink from the words of "Table on Contents" (the yellow part in the screenshot).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="renee_njc_1-1740536115120.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104939iC2CD85252502F7CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="renee_njc_1-1740536115120.png" alt="renee_njc_1-1740536115120.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 02:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960204#M374524</guid>
      <dc:creator>renee_njc</dc:creator>
      <dc:date>2025-02-26T02:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the hyperlink from the title of TOC in PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960205#M374525</link>
      <description>&lt;P&gt;That does seem stupid.&amp;nbsp; It it linked anywhere it should be the page it is already on.&lt;/P&gt;
&lt;P&gt;You try seeing if you can do it with CSS style changes?&lt;/P&gt;
&lt;P&gt;If you add the DOM option to your ODS PDF it will print the CSS it is generating to the SAS log.&lt;/P&gt;
&lt;P&gt;Looks your might be able to use CSS to change this element??&lt;/P&gt;
&lt;PRE&gt;      &amp;lt;p class="contenttitle" url="idx"&amp;gt;
      &amp;lt;/p&amp;gt;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Feb 2025 02:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/960205#M374525</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-02-26T02:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the hyperlink from the title of TOC in PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/962158#M375038</link>
      <description>&lt;P&gt;Hi Tom,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the CSS style and it doesn't work.&lt;/P&gt;&lt;P&gt;The hyperlink is still there.&lt;/P&gt;&lt;P&gt;Here is my CSS style:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;.body, .systemtitle, .header, .data {
   font-family: Courier New;
   }
   .body {
   color: black;
   background-color: white;
   border: solid black 0.1px;
   margin-bottom: 0.77in;
   margin-left: 1.34in;
   margin-right: 1.34in;
   margin-top: 0.77in;
   }

   .data
   {
     color: black;
     font-family: 'Courier New';
     font-size: 9pt;
     font-style: normal;
     font-weight: normal;
     border-width: 0.1em 0 0.1pt 0;
   }   
   .table
   {
     background-color: #FFFFFF;
     border-collapse: collapse;
     border-bottom-width: 0.1pt;
     border-collapse: separate;
     border-color: none;
     border-left-width: 0px;
     border-right-width: 0px;
     border-spacing: 0pt;
     border-style: solid;
     border-top-width: 0.1pt;  
     color: black;
     font-family: 'Courier New';
     font-size: 9pt;
     font-style: normal;
     font-weight: normal;
     text-align: center;
     margin-bottom: 0.77in;
     margin-left: 1.34in;
     margin-right: 1.34in;
     margin-top: 0.77in;
   }
   .header
   {
    border-collapse: collapse;
    border-bottom-width: 0.1pt;
    border-collapse: separate;
    border-color: none;
    border-left-width: 0px;
    border-right-width: 0px;
    border-spacing: 0pt;
    border-style: solid;
    border-top-width: 0.1pt; 
     background-color: #FFFFFF;
     color: #000000;
     font-family: 'Courier New';
     font-size: 9pt;
     font-style: normal;
     font-weight: normal;
   }    

   .systemtitle 
   {
   color: #000000;
   font-family: 'Courier New';
   font-size: 9pt;
   font-style: normal;
   font-weight: normal;
   background-color: none; 
   }
    .systemfooter
   {
     background-color: #FFFFFF;
     color: #000000;
     font-family: 'Courier New';
     font-size: 9pt;
     font-style: normal;
     font-weight: normal;
   }
     
   .contents
   {
     background-color: #FFFFFF;
     color: blue;
     font-family: 'Courier New';
     font-size: 9pt;
     font-style: normal;
     font-weight: normal;
     list-style-type: decimal;
     margin-left: 0px;
     margin-right: 0px;
   }

   .contents
{
  list-style-type: square;
  pointer-events: none;
}


   .contenttitle
   {
     color: green;
     font-family: 'Courier New';
     font-size: 12pt;
     font-style: normal;
     font-weight: bold;
     margin-bottom: 4em;
     margin-left: 1em;
     margin-right: 1em;
     margin-top: 4em;
     text-align: center;
     width: 100%;
     background-color:aqua; 
     pointer-events: none;
    }
  
  .contentproclabel
   {
     color: blue;
     font-family: 'Courier New';
     font-size: 8pt;
     font-style: normal;
     font-weight: normal;
     list-style-type: decimal;
     margin-left: 0in;
     margin-right: 0in;
   }
   .contentitem
   {
     color: red;
     font-family: 'Courier New';
     font-size: 9pt;
     font-style: normal;
     font-weight: normal;
     list-style-type: none;
     margin-left: 15%;
     margin-right: 15%;
   }
   
   .contentfolder
   {
     color: purple;
     font-family: 'Courier New';
     font-size: 9pt;
     font-style: normal;
     font-weight: normal;
     list-style-type: none;
     margin-left: 15%;
     margin-right: 15%;
   }
   .usertext
   {
     background-color: #FFFFFF;
     color: yellow;
     font-family: 'Courier New';
     font-size: 9pt;
     font-style: normal;
     font-weight: normal;
     pointer-events: none;
   }

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is my SAS code to generate the output:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;filename ncss "mypath./testt.css";
proc template;
define style styles.mycssstyle;
    import ncss;

end;
define style styles.mycssstyleprinter;
        parent=styles.mycssstyle;
        import ncss print;
        class contenttitle/  
          pretext = "TAT";

end;
run;


ods pdf file="&amp;amp;outdir./test.pdf" style=styles.mycssstyleprinter contents = yes ;


ods proclabel = "TEST1";
title   "test1";
proc report data=sashelp.class(obs=10);

run;

ods proclabel = "TEST2";
title   "test2";
proc report data=sashelp.class(obs=20);
run;
ods _all_ close;

ods pdf file="&amp;amp;outdir./test.pdf" style=styles.mycssstyleprinter contents = yes ;


ods proclabel = "TEST1";
title   "test1";
proc report data=sashelp.class(obs=10);

run;

ods proclabel = "TEST2";
title   "test2";
proc report data=sashelp.class(obs=20);
run;
ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have tried the code you posted. It doesn't work either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 02:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-hyperlink-from-the-title-of-TOC-in-PDF/m-p/962158#M375038</guid>
      <dc:creator>renee_njc</dc:creator>
      <dc:date>2025-03-19T02:39:34Z</dc:date>
    </item>
  </channel>
</rss>

