<?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 How to link to the table created by RWI in a PDF file in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-link-to-the-table-created-by-RWI-in-a-PDF-file/m-p/539541#M22464</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created several tables using RWI in my PDF files. Now I&amp;nbsp;want to create a summary page at the last page and generate the link to the tables in previous pages. How could I do that? Thanks in advance.&lt;/P&gt;&lt;P&gt;Here is sample of my program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods pdf file="myfile.pdf";&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; set myset end=eof;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if _N_ = 1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dcl odsout o();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* table 1 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.table_start();&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;...table 1 codes here ...&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.table_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* page break */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.page();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* table 2 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.table_start();&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;...table 2 codes here ...&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.table_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* page break */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.page();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* table 3 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.table_start();&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;...table 3 codes here ...&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.table_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; /* may I have new page contains the link to table 1 2 3? */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; o.page();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; o.table_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; o.row_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; o.format_cell(data: "Table 1", ??? how to link to Table 1?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;o.format_cell(data: "Table 2", ??? how to link to Table 2?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;o.format_cell(data: "Table 3", ??? how to link to Table 3?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; o.row_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; o.table_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if EOF then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;o.delete();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 04:39:55 GMT</pubDate>
    <dc:creator>cxterm</dc:creator>
    <dc:date>2019-03-01T04:39:55Z</dc:date>
    <item>
      <title>How to link to the table created by RWI in a PDF file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-link-to-the-table-created-by-RWI-in-a-PDF-file/m-p/539541#M22464</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created several tables using RWI in my PDF files. Now I&amp;nbsp;want to create a summary page at the last page and generate the link to the tables in previous pages. How could I do that? Thanks in advance.&lt;/P&gt;&lt;P&gt;Here is sample of my program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods pdf file="myfile.pdf";&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; set myset end=eof;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if _N_ = 1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dcl odsout o();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* table 1 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.table_start();&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;...table 1 codes here ...&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.table_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* page break */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.page();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* table 2 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.table_start();&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;...table 2 codes here ...&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.table_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* page break */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.page();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* table 3 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.table_start();&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;...table 3 codes here ...&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.table_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; /* may I have new page contains the link to table 1 2 3? */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; o.page();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; o.table_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; o.row_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; o.format_cell(data: "Table 1", ??? how to link to Table 1?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;o.format_cell(data: "Table 2", ??? how to link to Table 2?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;o.format_cell(data: "Table 3", ??? how to link to Table 3?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; o.row_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; o.table_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if EOF then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;o.delete();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 04:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-link-to-the-table-created-by-RWI-in-a-PDF-file/m-p/539541#M22464</guid>
      <dc:creator>cxterm</dc:creator>
      <dc:date>2019-03-01T04:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to link to the table created by RWI in a PDF file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-link-to-the-table-created-by-RWI-in-a-PDF-file/m-p/539614#M22466</link>
      <description>&lt;P&gt;You can make use of the&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf anchor="...";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to specify how bookmarks for table should start with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then use the URL inline attribute to create a link to a corresponding "bookmark". See code sample below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nocenter;
ods pdf file="c:\temp\anchor_test2.pdf" anchor="table1";
title;
footnote;
data _null_;
  dcl odsout o();
  nTables = 3;

  do table = 1 to nTables;
    o.table_start();

    do i = 1 to 10;
      n = i * ((10 ** table) / 10);
      o.row_start();
      o.format_cell(data: catx(" ", "Table", table) );
      o.format_cell(data: n);
      o.format_cell(data: put(n, words32.) );
      o.format_cell(data: put(n, roman.) );
      o.row_end();
    end;

    o.table_end();
    o.page();
  end;

  /* may I have new page contains the link to table 1 2 3? */
  o.table_start();

  do i = 1 to nTables;
    o.row_start();
    cellText = catx(" ", "Table", i);
    urlLink = cats("URL='#table", i, "'");
    o.format_cell(data: cellText, inline_attr: urlLink);
    o.row_end();
  end;

  o.table_end();
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See also this SAS Note with some more examples&amp;nbsp;&lt;A href="http://support.sas.com/kb/24/174.html" target="_blank"&gt;http://support.sas.com/kb/24/174.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 13:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-link-to-the-table-created-by-RWI-in-a-PDF-file/m-p/539614#M22466</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2019-03-01T13:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to link to the table created by RWI in a PDF file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-link-to-the-table-created-by-RWI-in-a-PDF-file/m-p/539645#M22467</link>
      <description>&lt;P&gt;Works perfect!&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 14:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-link-to-the-table-created-by-RWI-in-a-PDF-file/m-p/539645#M22467</guid>
      <dc:creator>cxterm</dc:creator>
      <dc:date>2019-03-01T14:36:32Z</dc:date>
    </item>
  </channel>
</rss>

