The SAS Output Delivery System and reporting techniques

How to force two outputs from proc report on one page and keep different titles?

Accepted Solution Solved
Reply
Super Contributor
Posts: 1,636
Accepted Solution

How to force two outputs from proc report on one page and keep different titles?

Thank you for your help!

options nodate nonumber;

ods listing close;

ods rtf file="c:\temp\class and heart.rtf";

proc report data=sashelp.class(where=(sex='F')) nowd ;

column name age weight;

title "sashelp.class";

run;

proc report data=sashelp.heart(where=(weight>290))  nowd ;

column sex height weight diastolic systolic;

title "sashelp.heart";

run;

ods rtf close;

ods listing;


Accepted Solutions
Solution
‎10-09-2013 11:45 AM
Grand Advisor
Posts: 16,420

Re: How to force two outputs from proc report on one page and keep different titles?

Check the startpage= option in ods rtf.

And for multiple titles use ODS RTF TEXT= rather than Title statements.

options nodate nonumber;

ods listing close;

ods rtf file="c:\temp\class and heart.rtf" startpage=never;

ODS RTF TEXT="sashelp.class";

proc report data=sashelp.class(where=(sex='F')) nowd ;

column name age weight;

run;

ODS RTF TEXT="sashelp.heart";

proc report data=sashelp.heart(where=(weight>290))  nowd ;

column sex height weight diastolic systolic;

run;

ods rtf close;

ods listing;

View solution in original post


All Replies
Solution
‎10-09-2013 11:45 AM
Grand Advisor
Posts: 16,420

Re: How to force two outputs from proc report on one page and keep different titles?

Check the startpage= option in ods rtf.

And for multiple titles use ODS RTF TEXT= rather than Title statements.

options nodate nonumber;

ods listing close;

ods rtf file="c:\temp\class and heart.rtf" startpage=never;

ODS RTF TEXT="sashelp.class";

proc report data=sashelp.class(where=(sex='F')) nowd ;

column name age weight;

run;

ODS RTF TEXT="sashelp.heart";

proc report data=sashelp.heart(where=(weight>290))  nowd ;

column sex height weight diastolic systolic;

run;

ods rtf close;

ods listing;

Super Contributor
Posts: 1,636

Re: How to force two outputs from proc report on one page and keep different titles?

Thanks Reeza! - Linlin

Post a Question
Discussion Stats
  • 2 replies
  • 532 views
  • 2 likes
  • 2 in conversation