The SAS Output Delivery System and reporting techniques

Unwanted page break ODS pdf

Reply
Regular Contributor
Posts: 178

Unwanted page break ODS pdf

 

PROC REPORT DATA= harvey_tx headskip split='*' wrap nowd

 

style(report)=[background=black cellspacing=10 just=center font_size=9pt font_face="Calibri" bordercolor=black borderwidth=1]

style(column)=[background=white font_size=10pt bordercolor=black borderwidth=1]

 

;

columns Disaster State Indiv_Numb Indiv_Doll Publ_Numb Publ_Doll;

define Indiv_Numb/ Display style(column)={cellwidth=60pt just=center} "Indiv #s" ;

define Indiv_Doll/ Display style(column)={cellwidth=90pt just=center} "Indiv $" ;

define Publ_Numb/ Display style(column)={cellwidth=60pt just=center} "Public #s" ;

define Publ_Doll/ Display style(column)={cellwidth=90pt just=center} "Public $" ;

define Indiv_Numb /sum f=comma6.;

define Indiv_Doll /sum f=dollar16.2;

define Publ_Numb /sum f=comma6.;

define Publ_Doll /sum f=dollar16.2;

compute before;

 

sum=Indiv_Numb.sum;

sum=Indiv_Doll.sum;

sum=Publ_Numb.sum;

sum=Publ_Doll.sum;

endcomp;

compute after;

Disaster='State';

endcomp;

rbreak after /summarize ;

run;

  

 

PROC REPORT DATA= irma_fl headskip split='*' wrap nowd

style(report)=[background=black cellspacing=10 just=center font_size=9pt font_face="Calibri" bordercolor=black borderwidth=1]

style(column)=[background=white font_size=10pt bordercolor=black borderwidth=1]

 

;

columns Disaster State Indiv_Numb Indiv_Doll Publ_Numb Publ_Doll;

define Indiv_Numb/ Display style(column)={cellwidth=60pt just=center} "Indiv #s" ;

define Indiv_Doll/ Display style(column)={cellwidth=90pt just=center} "Indiv $" ;

define Publ_Numb/ Display style(column)={cellwidth=60pt just=center} "Public #s" ;

define Publ_Doll/ Display style(column)={cellwidth=90pt just=center} "Public $" ;

define Indiv_Numb /sum f=comma6.;

define Indiv_Doll /sum f=dollar16.2;

define Publ_Numb /sum f=comma6.;

define Publ_Doll /sum f=dollar16.2;

compute before;

 

sum=Indiv_Numb.sum;

sum=Indiv_Doll.sum;

sum=Publ_Numb.sum;

sum=Publ_Doll.sum;

endcomp;

compute after;

Disaster='State' ;

endcomp;

rbreak after /summarize;

run;

 I am getting a next page after the first proc report (in this case Harvey_tx)  I have several additional proc reports to enter and I want as many as possible on the same page.  For proc report in ods

1. How can I place multiple proc reports and list them on the same page
2. How can I control when I want a new page ??

Super User
Posts: 22,818

Re: Unwanted page break ODS pdf

STARTPAGE option on the ODS PDF statement.

 

Set it to none and then it goes to a new page when it's full. You can explicitly start a new page with:

 

ods pdf startpage=now;
Ask a Question
Discussion stats
  • 1 reply
  • 125 views
  • 0 likes
  • 2 in conversation