<?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: Page X of Y yields strange results in ODS PDF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-yields-strange-results-in-ODS-PDF/m-p/607772#M23536</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This works for me in SAS 9.4M5:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pagenum_works_94M5.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34290i2EE5B161CEE308DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pagenum_works_94M5.png" alt="pagenum_works_94M5.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see, I used the ESCAPECHAR functions in both the TITLE and the FOOTNOTE and they both worked in PDF. Since you didn't show all your code, it could be a style issue, a font issue or some other issue. There were, in the past, problems possible if you tried to use {thispage} and {lastpage} in code that included Graphics procedure output or background images. But you didn't show your code, so it's hard to tell. Here are some relevant Tech Support notes to check out.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/56/041.html" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/56/041.html&lt;/A&gt; and&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/34/573.html" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/34/573.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If none of the suggested fixes work for you, then I'd suggest opening a track with Tech Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 20:46:49 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-11-27T20:46:49Z</dc:date>
    <item>
      <title>Page X of Y yields strange results in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-yields-strange-results-in-ODS-PDF/m-p/607734#M23535</link>
      <description>&lt;P&gt;Using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods escapechar = "^";&lt;/P&gt;&lt;P&gt;footnote height = 7pt 'Page ^{thispage} of ^{lastpage}';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following result is shown:&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="Capture.PNG" style="width: 244px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34284i213B26A5284C887E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What causes this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-yields-strange-results-in-ODS-PDF/m-p/607734#M23535</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2019-11-27T15:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Page X of Y yields strange results in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-yields-strange-results-in-ODS-PDF/m-p/607772#M23536</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This works for me in SAS 9.4M5:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pagenum_works_94M5.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34290i2EE5B161CEE308DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pagenum_works_94M5.png" alt="pagenum_works_94M5.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see, I used the ESCAPECHAR functions in both the TITLE and the FOOTNOTE and they both worked in PDF. Since you didn't show all your code, it could be a style issue, a font issue or some other issue. There were, in the past, problems possible if you tried to use {thispage} and {lastpage} in code that included Graphics procedure output or background images. But you didn't show your code, so it's hard to tell. Here are some relevant Tech Support notes to check out.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/56/041.html" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/56/041.html&lt;/A&gt; and&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/34/573.html" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/34/573.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If none of the suggested fixes work for you, then I'd suggest opening a track with Tech Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 20:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-yields-strange-results-in-ODS-PDF/m-p/607772#M23536</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-11-27T20:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Page X of Y yields strange results in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-yields-strange-results-in-ODS-PDF/m-p/607794#M23537</link>
      <description>&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the links to the KB notes. The PRINTERPATH = PDF option activation seems to have resolved the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 17:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-yields-strange-results-in-ODS-PDF/m-p/607794#M23537</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2019-11-27T17:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Page X of Y yields strange results in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-yields-strange-results-in-ODS-PDF/m-p/731846#M24966</link>
      <description>&lt;P&gt;I had the same issue with "Lastpage".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This problem is described here&amp;nbsp;&lt;A href="https://support.sas.com/kb/56/041.html" target="_self"&gt;Problem Note&amp;nbsp;56041:&amp;nbsp;The LASTPAGE inline style command might display garbled text in PDF files&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The following line was a solution in my case:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;options printerpath=pdf;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 10:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-yields-strange-results-in-ODS-PDF/m-p/731846#M24966</guid>
      <dc:creator>Konstantin_P</dc:creator>
      <dc:date>2021-04-07T10:21:19Z</dc:date>
    </item>
  </channel>
</rss>

