BookmarkSubscribeRSS Feed
Dips1
Calcite | Level 5

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;

 

 

3 REPLIES 3
Cynthia_sas
SAS Super FREQ

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

Dips1
Calcite | Level 5

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. 

 

ChristineKraft
Fluorite | Level 6

Did you ever find a solution to this problem? I am having the same problem with my PDF output.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 13157 views
  • 0 likes
  • 3 in conversation