Hi,
I have been using code similar to this:
ods escapechar='!';
footnote1 j=r "Page !{thispage} of !{lastpage}";
..for sometime now to produce 'page x of y' in the footer of my Proc Report ods -> 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 >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 > 500 pgs. It seems to be due only to the {lastpage} tag -- changing the footnote to:
footnote1 j=r "Page !{thispage}";
..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):
Style PageNo from TitlesAndFooters
"Controls page x of y in the footer" /
font = fonts("TitleFont2")
cellpadding = 0
cellspacing = 0
pretext = "Page "
posttext = " of !{lastpage}"
just=r
vjust=b;
..with the same effect. Has anyone else encountered this problem, or better yet, know of a work around?
Thanks.