BookmarkSubscribeRSS Feed
Q1983
Lapis Lazuli | Level 10

 

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 ??

1 REPLY 1
Reeza
Super User

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;

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1 reply
  • 2136 views
  • 0 likes
  • 2 in conversation