<?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 numbers in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Page-numbers/m-p/681290#M206055</link>
    <description>&lt;P&gt;You will need to show more of your code, or a reproducible example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following example does number pages correctly&lt;/P&gt;
&lt;PRE&gt;options papersize = (8.5in 2in);&lt;BR /&gt;&lt;BR /&gt;ods pdf file="cars.pdf" style=journal;

ODS escapechar='^';

title "sashelp.Cars" j=right  'page ^{thispage} of ^{lastpage}';

proc print noobs data=sashelp.cars;
  var make model type msrp invoice;
run;

ods pdf close;&lt;/PRE&gt;
&lt;P&gt;PDF view capture&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardADeVenezia_0-1599130775427.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48952iD4B3F506ADC0AECC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardADeVenezia_0-1599130775427.png" alt="RichardADeVenezia_0-1599130775427.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Sep 2020 11:00:15 GMT</pubDate>
    <dc:creator>RichardDeVen</dc:creator>
    <dc:date>2020-09-03T11:00:15Z</dc:date>
    <item>
      <title>Page numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Page-numbers/m-p/681221#M206037</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using below options to display page numbers in pdf document&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;ODS escapechar='^';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;title3&amp;nbsp; &amp;nbsp;j=right&amp;nbsp; 'page ^{thispage} of ^{lastpage}';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but getting bellow output:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;RPage 1 of&amp;nbsp;&lt;/STRONG&gt;@&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone help out me to get exact page numbers&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 05:09:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Page-numbers/m-p/681221#M206037</guid>
      <dc:creator>KalaBhairava</dc:creator>
      <dc:date>2020-09-03T05:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Page numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Page-numbers/m-p/681290#M206055</link>
      <description>&lt;P&gt;You will need to show more of your code, or a reproducible example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following example does number pages correctly&lt;/P&gt;
&lt;PRE&gt;options papersize = (8.5in 2in);&lt;BR /&gt;&lt;BR /&gt;ods pdf file="cars.pdf" style=journal;

ODS escapechar='^';

title "sashelp.Cars" j=right  'page ^{thispage} of ^{lastpage}';

proc print noobs data=sashelp.cars;
  var make model type msrp invoice;
run;

ods pdf close;&lt;/PRE&gt;
&lt;P&gt;PDF view capture&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardADeVenezia_0-1599130775427.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48952iD4B3F506ADC0AECC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardADeVenezia_0-1599130775427.png" alt="RichardADeVenezia_0-1599130775427.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 11:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Page-numbers/m-p/681290#M206055</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-09-03T11:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Page numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Page-numbers/m-p/681552#M206161</link>
      <description>&lt;P&gt;yes , initially it came but what happened I don't know suddenly it's did't work and not generating page numbers, do we have any other options to generate page numbers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use below options it printing&amp;nbsp; like &lt;STRONG&gt;page 1,&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;but I want it as&lt;STRONG&gt; page 1 of 4&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;page ^{thispage}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 05:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Page-numbers/m-p/681552#M206161</guid>
      <dc:creator>KalaBhairava</dc:creator>
      <dc:date>2020-09-04T05:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Page numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Page-numbers/m-p/681788#M206275</link>
      <description>&lt;P&gt;Show the log from a code example that produces the wrong page numbers; start with the initial ODS PDF, and end with the ODS PDF CLOSE. If you use data that can't be taken out of SASHELP, provide it in a data step with datalines.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 09:01:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Page-numbers/m-p/681788#M206275</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-05T09:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Page numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Page-numbers/m-p/682141#M206464</link>
      <description>&lt;P&gt;Thank you very much for your message, It's working fine now , I will give you screen shot of log if I face same issue again&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 06:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Page-numbers/m-p/682141#M206464</guid>
      <dc:creator>KalaBhairava</dc:creator>
      <dc:date>2020-09-08T06:44:07Z</dc:date>
    </item>
  </channel>
</rss>

