How to eliminate default page break

Reply
Contributor
Posts: 73

How to eliminate default page break

Hello EG Users,

I am generating simple PDF report that has numerical matrix and plot. I want to fit all this data on one single page, just the way it has been generated in microsoft excel so far.

I read about STARTPAGE option available for ODS PDF statement:

ods pdf startpage=OFF style=sasweb ;

I tried NEVER, NO values, but yet the pdf file has two pages, one for numerical matrix and other for plot.

I would appreciate suggestions on how to go about fitting everything on one page.

Thanks,

Dhanashree

Super User
Posts: 11,343

Re: How to eliminate default page break

Since PDF does recognize pages if the size of the plot plus a table is too large for the physical layout then the items will appear on different pages because the chart can't be split. You might be able to get things to fit by changing font sizes for the text / table output, reducing margins or controlling the size of the chart.

SAS Super FREQ
Posts: 8,864

Re: How to eliminate default page break


Hi:

  Here's an example using ODS GRAPHICS where ALL 19 rows of SASHELP.CLASS fit on the same page as a 4"x6" bar chart done with ODS GRAPHICS. Screen shot of output shows that both outputs fit on 1 page. You would need different options (GOPTIONS) if the graph procedure were SAS/GRAPH, but the concept would be the same.

Cynthia

ods listing close;

ods pdf file='c:\temp\onepagexy.pdf' startpage=no notoc;

  

proc print data=sashelp.class;

run;

  

ods graphics / height=4in width=6in;

proc sgplot data=sashelp.class;

  vbar age / response=height stat=mean;

run;

ods pdf close;


one_page_pdf.png
Ask a Question
Discussion stats
  • 2 replies
  • 1523 views
  • 0 likes
  • 3 in conversation