<?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 Page x of y using ODS ESCAPECHAR in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-using-ODS-ESCAPECHAR/m-p/70086#M8045</link>
    <description>Problem Description: &lt;BR /&gt;
   I'm creating tables using PROC TABULATE and have set up a footnote stating 'Page x of y' using the ODS ESCAPECHAR functionality. 'Page x of y' for each table is independent of the other tables - e.g. if I have 3 tables each of 2 pages, then the footnote will be Page 1 of 2 &amp;amp; Page 2 of 2 for each of the 3 tables. &lt;BR /&gt;
&lt;BR /&gt;
The resulting tables are output to one PDF file. &lt;BR /&gt;
I want to maintain the page numbering for each table independent of the others i.e. Page 1 of 2, Page 2 of 2 rather than Page 1 of 6 etc.. &lt;BR /&gt;
&lt;BR /&gt;
Is there a way of resetting the page numbering for each new PROC TABULATE within the ODS PDF statements? &lt;BR /&gt;
I can reset the current page number using OPTIONS PAGENO=1 in between each PROC TABULATE, but this doesn't solve the resetting of the {lastpage} value. &lt;BR /&gt;
&lt;BR /&gt;
The code below is just a PROC PRINT of the SASHELP dataset CLASS to get my point across.  This has output Page 1 of 2 and Page 2 of 2, but really I would want Page 1 of 1 for the first PROC PRINT and Page 1 of 1 for the second PROC PRINT.</description>
    <pubDate>Tue, 08 Feb 2011 07:04:22 GMT</pubDate>
    <dc:creator>shirinkumar_shah</dc:creator>
    <dc:date>2011-02-08T07:04:22Z</dc:date>
    <item>
      <title>Page x of y using ODS ESCAPECHAR</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-using-ODS-ESCAPECHAR/m-p/70086#M8045</link>
      <description>Problem Description: &lt;BR /&gt;
   I'm creating tables using PROC TABULATE and have set up a footnote stating 'Page x of y' using the ODS ESCAPECHAR functionality. 'Page x of y' for each table is independent of the other tables - e.g. if I have 3 tables each of 2 pages, then the footnote will be Page 1 of 2 &amp;amp; Page 2 of 2 for each of the 3 tables. &lt;BR /&gt;
&lt;BR /&gt;
The resulting tables are output to one PDF file. &lt;BR /&gt;
I want to maintain the page numbering for each table independent of the others i.e. Page 1 of 2, Page 2 of 2 rather than Page 1 of 6 etc.. &lt;BR /&gt;
&lt;BR /&gt;
Is there a way of resetting the page numbering for each new PROC TABULATE within the ODS PDF statements? &lt;BR /&gt;
I can reset the current page number using OPTIONS PAGENO=1 in between each PROC TABULATE, but this doesn't solve the resetting of the {lastpage} value. &lt;BR /&gt;
&lt;BR /&gt;
The code below is just a PROC PRINT of the SASHELP dataset CLASS to get my point across.  This has output Page 1 of 2 and Page 2 of 2, but really I would want Page 1 of 1 for the first PROC PRINT and Page 1 of 1 for the second PROC PRINT.</description>
      <pubDate>Tue, 08 Feb 2011 07:04:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-using-ODS-ESCAPECHAR/m-p/70086#M8045</guid>
      <dc:creator>shirinkumar_shah</dc:creator>
      <dc:date>2011-02-08T07:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Page x of y using ODS ESCAPECHAR</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-using-ODS-ESCAPECHAR/m-p/70087#M8046</link>
      <description>Shah&lt;BR /&gt;
It seems that the of is always aligned with the total number of pages of your entire document&lt;BR /&gt;
Andre&lt;BR /&gt;
&lt;BR /&gt;
even with the following try&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods rtf file="test.rtf";&lt;BR /&gt;
title  justify=right ' ^{thispage} ';&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
options pageno=1;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
options pageno=1;&lt;BR /&gt;
footnote "proc print  ^{pageof} ";;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 08 Feb 2011 09:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-using-ODS-ESCAPECHAR/m-p/70087#M8046</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2011-02-08T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Page x of y using ODS ESCAPECHAR</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-using-ODS-ESCAPECHAR/m-p/70088#M8047</link>
      <description>Hi Andre,&lt;BR /&gt;
 Thanks for your quick response, meanwhile i have managed to get what I was looking for in RTF format, but my goal is to gate the same in PDF.&lt;BR /&gt;
Can you please help me on this. &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ods rtf file="C:\section.rtf"contents=yes;&lt;BR /&gt;
* Create in table page numbering within the document;&lt;BR /&gt;
ods rtf sectiondata="\pgnrestart\pgnstarts1";&lt;BR /&gt;
proc print data=sashelp.class ;&lt;BR /&gt;
title '{Page \field{\*\fldinst { PAGE \\* MERGEFORMAT }}} of {\field&lt;BR /&gt;
{\*\fldinst SECTIONPAGES \* MERGEFORMAT } in this section}';&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=sashelp.shoes ;&lt;BR /&gt;
title '{Page \field{\*\fldinst { PAGE \\* MERGEFORMAT }}} of {\field&lt;BR /&gt;
{\*\fldinst SECTIONPAGES \* MERGEFORMAT } in this section}';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods rtf close ;&lt;BR /&gt;
&lt;BR /&gt;
Shirin</description>
      <pubDate>Tue, 08 Feb 2011 09:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-using-ODS-ESCAPECHAR/m-p/70088#M8047</guid>
      <dc:creator>shirinkumar_shah</dc:creator>
      <dc:date>2011-02-08T09:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Page x of y using ODS ESCAPECHAR</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-using-ODS-ESCAPECHAR/m-p/70089#M8048</link>
      <description>Shah&lt;BR /&gt;
rtf internal encoding applies only to rtf &lt;BR /&gt;
if you get the correct presentation in rtf, you may perhaps&lt;BR /&gt;
export it directly from Open office or&lt;BR /&gt;
 indirectly from MSWord (with pdf creator printer) to pdf?&lt;BR /&gt;
&lt;BR /&gt;
Andre</description>
      <pubDate>Tue, 08 Feb 2011 10:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-using-ODS-ESCAPECHAR/m-p/70089#M8048</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2011-02-08T10:05:58Z</dc:date>
    </item>
  </channel>
</rss>

