<?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 Using ODS PDF ANCHOR statement to get page number? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-PDF-ANCHOR-statement-to-get-page-number/m-p/648775#M24098</link>
    <description>&lt;P&gt;I am trying to build a table of contents for a monthly report. The report has several sections I'd like to reference, but their length may vary from month-to-month, so I would like to make the table of contents dynamic rather than hard-coded. I tried defining variables with ^{thispage} on the appropriate pages, but it didn't reference back correctly. Is it possible to get a page number from ODS PDF ANCHOR statements instead? Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 19 May 2020 07:35:19 GMT</pubDate>
    <dc:creator>tburus</dc:creator>
    <dc:date>2020-05-19T07:35:19Z</dc:date>
    <item>
      <title>Using ODS PDF ANCHOR statement to get page number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-PDF-ANCHOR-statement-to-get-page-number/m-p/648775#M24098</link>
      <description>&lt;P&gt;I am trying to build a table of contents for a monthly report. The report has several sections I'd like to reference, but their length may vary from month-to-month, so I would like to make the table of contents dynamic rather than hard-coded. I tried defining variables with ^{thispage} on the appropriate pages, but it didn't reference back correctly. Is it possible to get a page number from ODS PDF ANCHOR statements instead? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 07:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-PDF-ANCHOR-statement-to-get-page-number/m-p/648775#M24098</guid>
      <dc:creator>tburus</dc:creator>
      <dc:date>2020-05-19T07:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using ODS PDF ANCHOR statement to get page number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-PDF-ANCHOR-statement-to-get-page-number/m-p/648877#M24099</link>
      <description>&lt;P&gt;For "sections" you might try using the ODS PROCLABEL statement as a section title in the TOC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before the first procedure that creates output in your sections add something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods proclabel "Section XXXX";&lt;/P&gt;
&lt;P&gt;&amp;lt;some proc code goes here&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 15:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-PDF-ANCHOR-statement-to-get-page-number/m-p/648877#M24099</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-19T15:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using ODS PDF ANCHOR statement to get page number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-PDF-ANCHOR-statement-to-get-page-number/m-p/648881#M24100</link>
      <description>&lt;P&gt;Thanks. I've done this, but is there anyway to get this to call the page number in a way that I could define a variable that prints the page number out?&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 15:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-PDF-ANCHOR-statement-to-get-page-number/m-p/648881#M24100</guid>
      <dc:creator>tburus</dc:creator>
      <dc:date>2020-05-19T15:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using ODS PDF ANCHOR statement to get page number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-PDF-ANCHOR-statement-to-get-page-number/m-p/648883#M24101</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329503"&gt;@tburus&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks. I've done this, but is there anyway to get this to call the page number in a way that I could define a variable that prints the page number out?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't work with PDF to have a clue and gave up trying to calculate page numbers for anything 30 years ago.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 15:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-PDF-ANCHOR-statement-to-get-page-number/m-p/648883#M24101</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-19T15:40:28Z</dc:date>
    </item>
  </channel>
</rss>

