The SAS Output Delivery System and reporting techniques

ODS PDF with option startpage=no/new, generates a BLANK page, how can we avoid blank page?

Reply
New Contributor
Posts: 2

ODS PDF with option startpage=no/new, generates a BLANK page, how can we avoid blank page?

[ Edited ]

Hi I have been trying to produce two reports with PROC tabulate on two seperate pages of PDF report, using startpage option. However, in the final pdf output, there is a BLANK page appearing on first page. Can you please guide how can we avoid the blank page from appearing on first page of report? Below is the sample code being used:

 

ods noproctitle;

ods pdf file = '...path/filename.pdf' startpage=never style=printer pdftoc=1;

title1 'title1';

proc tabulate data=xyx contents=' ';

 ......

run;

 

ods pdf startpage=now;

ods proclable = 'ABC';  

 

title1 'title2';

proc tabulate data=xyx contents=' ';

 ......

run;

ods pdf close;

 

 

SAS Super FREQ
Posts: 8,743

Re: ODS PDF with option startpage=no/new, generates a BLANK page, how can we avoid blank page?

Hi:

  Given the code you've posted, and given that you did not post full code or data, it is hard to replicate what you say you see. When I tried code the way I usually get 2 page output, I do not get a blank page, as you describe. Here are two tests that I ran:

1: NOT using STARTPAGE, as it does not seem needed for the situation you describe

not_use_startpage_get_two_pages.png

 

2: Using STARTPAGE=NO at the beginning, have 2 procs on page 1 and then using STARTPAGE=NOW for page 2:

using_startpage.png

 

If I use STARTPAGE=NEVER instead of STARTPAGE=NO for the 2nd example, I still get the same results.

 

You might want to open a track with Tech Support if you can't figure it out. It might come down to your version of SAS and your other settings.

 

cynthia

New Contributor
Posts: 2

Re: ODS PDF with option startpage=no/new, generates a BLANK page, how can we avoid blank page?

Thank you for the detailed reply Cynthia, Actually when I too generated a second report with lesser variables in the proc tabulate, no blank page was generated. However, when my report had a lot of variables (~20) a blank page was showing up in front(as first page) of the pdf report. I am using SAS version 9 on UNIX plateform. 

 

Ask a Question
Discussion stats
  • 2 replies
  • 237 views
  • 0 likes
  • 2 in conversation