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