<?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 for ODS &amp;gt; PDF page limit? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-for-ODS-gt-PDF-page-limit/m-p/11727#M3084</link>
    <description>David,&lt;BR /&gt;
&lt;BR /&gt;
I'm wondering if you are hitting a memory limit on your machine.  Is it possible to share your data with me so I could run it here.&lt;BR /&gt;
&lt;BR /&gt;
Email me at ODS@sas.com&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Scott</description>
    <pubDate>Wed, 28 Apr 2010 19:31:49 GMT</pubDate>
    <dc:creator>ScottH_SAS</dc:creator>
    <dc:date>2010-04-28T19:31:49Z</dc:date>
    <item>
      <title>Page x of y for ODS &gt; PDF page limit?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-for-ODS-gt-PDF-page-limit/m-p/11726#M3083</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have been using code similar to this:&lt;BR /&gt;
&lt;BR /&gt;
  ods escapechar='!';&lt;BR /&gt;
  footnote1 j=r "Page !{thispage} of !{lastpage}"; &lt;BR /&gt;
&lt;BR /&gt;
..for sometime now to produce 'page x of y' in the footer of my Proc Report ods -&amp;gt; PDF output.  I believe that I have run up against a limit in using this method related to the {lastpage} tag.  If the output is &amp;gt;500 pages, the program seems to hang using ever greater amounts of memory.  A program that would normally take less that a minute to complete without the {lastpage} tag in the footnote runs for at least 15 minutes (I lose patience and kill the job at this point).  I have only experienced this with output &amp;gt; 500 pgs. It seems to be due only to the {lastpage} tag -- changing the footnote to:&lt;BR /&gt;
&lt;BR /&gt;
  footnote1 j=r "Page !{thispage}";&lt;BR /&gt;
&lt;BR /&gt;
..brings the execution time back to under a minute even for 800+ pages.  I have tried a custom style template with page x of y defined in the PageNo section (see SUGI paper 132-30 by Lauren Haworth):&lt;BR /&gt;
&lt;BR /&gt;
     Style PageNo from TitlesAndFooters &lt;BR /&gt;
         "Controls page x of y in the footer" /                                &lt;BR /&gt;
         font = fonts("TitleFont2")&lt;BR /&gt;
         cellpadding = 0&lt;BR /&gt;
         cellspacing = 0&lt;BR /&gt;
         pretext = "Page "&lt;BR /&gt;
         posttext = " of !{lastpage}"&lt;BR /&gt;
         just=r&lt;BR /&gt;
         vjust=b;&lt;BR /&gt;
&lt;BR /&gt;
..with the same effect.  Has anyone else encountered this problem, or better yet, know of a work around?&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Wed, 28 Apr 2010 17:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-for-ODS-gt-PDF-page-limit/m-p/11726#M3083</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-28T17:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Page x of y for ODS &gt; PDF page limit?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-for-ODS-gt-PDF-page-limit/m-p/11727#M3084</link>
      <description>David,&lt;BR /&gt;
&lt;BR /&gt;
I'm wondering if you are hitting a memory limit on your machine.  Is it possible to share your data with me so I could run it here.&lt;BR /&gt;
&lt;BR /&gt;
Email me at ODS@sas.com&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Scott</description>
      <pubDate>Wed, 28 Apr 2010 19:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-for-ODS-gt-PDF-page-limit/m-p/11727#M3084</guid>
      <dc:creator>ScottH_SAS</dc:creator>
      <dc:date>2010-04-28T19:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Page x of y for ODS &gt; PDF page limit?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-for-ODS-gt-PDF-page-limit/m-p/11728#M3085</link>
      <description>Hi Scott,&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately I don't think that I can share the data without getting releases and such.  I can tell you that the dataset that Proc Report was working on had 2698 obs and that because of wrapping on various text columns in the report I would typically get 4-5 obs per page.  I don't know if that is enough to go on.  I think that my pc is relatively robust -- it has 2GB of memory and an quad processor and I do not typically have a lot of other apps running.  I watched the memory usage while the job was running and while the memory kept climbing slowly when I gave up on the job it had reached the 100MB range with about 25% CPU. One other piece of information is that after terminating the SAS process the PDF file created had approx 400 of 600+ pages written but was 500MB in size.  If I took out the {lastpage} tag from the footnote all 600+ pages would write in less than 1 minute and the file size was 5MB.  Let me know if this is helpful.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Wed, 28 Apr 2010 21:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-x-of-y-for-ODS-gt-PDF-page-limit/m-p/11728#M3085</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-28T21:04:47Z</dc:date>
    </item>
  </channel>
</rss>

