<?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: Can I get Total Number of Pages in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-I-get-Total-Number-of-Pages/m-p/4444#M1405</link>
    <description>Hi:&lt;BR /&gt;
  See the posting in ODS and BASE SAS Reporting forum:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=1796&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=1796&amp;amp;tstart=0&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
In brief -- &lt;BR /&gt;
the special Escapechar functions {thispage} and {lastpage} will give you the current page and the last page (total page). However, you must first declare an ESCAPECHAR to ODS:[pre]&lt;BR /&gt;
ods escapechar='~';[/pre]&lt;BR /&gt;
then you must use the Escapechar with the special function in a title or footnote: [pre]&lt;BR /&gt;
title 'This is Page ~{thispage} of ~{lastpage}'; [/pre]&lt;BR /&gt;
 &lt;BR /&gt;
Last, but not least, you must understand where this special Escapechar function will work:&lt;BR /&gt;
RTF, PDF  -- YES&lt;BR /&gt;
HTML -- NO (there are no page numbers for HTML)&lt;BR /&gt;
LISTING -- TXT -- NO&lt;BR /&gt;
 &lt;BR /&gt;
For more help with Page X of Y page numbering with EG, you should contact Tech Support. There are ways to do Page X of Y page numbering with the LISTING destination, however, you MUST post-process the LISTING destination file in order to accomplish the task and it would not generally be a viable option for a stored process.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 30 Aug 2007 23:49:35 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-08-30T23:49:35Z</dc:date>
    <item>
      <title>Can I get Total Number of Pages</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-I-get-Total-Number-of-Pages/m-p/4443#M1404</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I am using PROC PRINT to generate a report&lt;BR /&gt;
&lt;BR /&gt;
How can I get Page numbers and Total no of Pages.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Grasshopper</description>
      <pubDate>Thu, 30 Aug 2007 22:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-I-get-Total-Number-of-Pages/m-p/4443#M1404</guid>
      <dc:creator>SanjayM</dc:creator>
      <dc:date>2007-08-30T22:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get Total Number of Pages</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-I-get-Total-Number-of-Pages/m-p/4444#M1405</link>
      <description>Hi:&lt;BR /&gt;
  See the posting in ODS and BASE SAS Reporting forum:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=1796&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=1796&amp;amp;tstart=0&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
In brief -- &lt;BR /&gt;
the special Escapechar functions {thispage} and {lastpage} will give you the current page and the last page (total page). However, you must first declare an ESCAPECHAR to ODS:[pre]&lt;BR /&gt;
ods escapechar='~';[/pre]&lt;BR /&gt;
then you must use the Escapechar with the special function in a title or footnote: [pre]&lt;BR /&gt;
title 'This is Page ~{thispage} of ~{lastpage}'; [/pre]&lt;BR /&gt;
 &lt;BR /&gt;
Last, but not least, you must understand where this special Escapechar function will work:&lt;BR /&gt;
RTF, PDF  -- YES&lt;BR /&gt;
HTML -- NO (there are no page numbers for HTML)&lt;BR /&gt;
LISTING -- TXT -- NO&lt;BR /&gt;
 &lt;BR /&gt;
For more help with Page X of Y page numbering with EG, you should contact Tech Support. There are ways to do Page X of Y page numbering with the LISTING destination, however, you MUST post-process the LISTING destination file in order to accomplish the task and it would not generally be a viable option for a stored process.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 30 Aug 2007 23:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-I-get-Total-Number-of-Pages/m-p/4444#M1405</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-30T23:49:35Z</dc:date>
    </item>
  </channel>
</rss>

