I've got a problem with getting a page break and I'm not sure what option / setting to use to get my output correct.
Background: I'm using sgrender to create many small charts based on statgraph templates. There are varying numbers of charts created per report - anywhere from 6 to 26 depending on the data.
I use ODS PDF and run a proc GSLIDE for a cover page and then replay the charts into a the PDF with columns=3, and they are sized to fit 3 per column so there are 9 per page.
When I create the PDF and close it after the last sgrender I get all charts in a single PDF and the last page usually contains less than 9 charts. I works fine but I have to combine the PDFs in Acrobat.
When I leave the pdf open and start another section of the report with a proc gslide, the pages with 9 charts are printed but the last page which only has 8 charts is not.
Below is an example of the structure and options I used.
ods document name= ...(write);
***code to create 26 small charts;
ods document close;
ODS GRAPHICS ON / reset height=8in width=10in ;
ods pdf file=.... notoc;
proc gslide; ... cover page for charts ... run; quit;
ODS GRAPHICS ON / reset height=3in width=3in ;
ods pdf file=.... notoc columns=3 startpage=no;
proc document name=...; replay; run; quit;
ODS GRAPHICS ON / reset ;
ods pdf notoc columns=1 startpage=now ;
proc gslide; ... cover page for next section ... run; quit;
ods _all_ close;
The last page of charts is overwritten with the GSLIDE, but when the PDF is closed following the proc document replay there are 3 pages of charts.
I've tried to control the paging with "OBPAGE / after" after the last chart, but no luck there.
Does anyone have any ideas as to what I'm doing wrong?