ODS PDF creates a blank page when startpage is set as no/never

Reply
Occasional Contributor
Posts: 7

ODS PDF creates a blank page when startpage is set as no/never

Hi,

I recently met a problem in ODS PDF. Below is how to repeat it:

data class;

    set sashelp.class;

    do i = 1 to 5;

        output;

    end;

    drop i;

run;

/*

* It seeems that if dataset class contains enough records, PDF will start with a blank page.

* If I removed startpage=never, the problem disappeared. But I need to print multiple datasets,

* and I don't want to start a page for each dataset.

*/

ods pdf style=sasweb file='class.pdf'  startpage=never ;

proc report data=class nowd; run;

ods pdf close;

Can anyone explain to me how to avoid the blank page? Thanks a lot.

Note: Sometimes the dataset that is "long" enough appears in the middle of my report, it will start a new page even if the current page has a lot space. This is what i tried to avoid.

Ask a Question
Discussion stats
  • 0 replies
  • 308 views
  • 0 likes
  • 1 in conversation