The SAS Output Delivery System and reporting techniques

PROC PRINT and titles

Accepted Solution Solved
Reply
New Contributor
Posts: 4
Accepted Solution

PROC PRINT and titles

Hi!

 

I'm trying to print a report using multiple proc prints within one ods rtf. I want it to print in one long file with startpage never, but the title to separate tables show up on top of the page and not before the relevant proc statement. How do I make my titles show up before a proc print statement anywhere on the page and not just on top of the page? thanks!


Accepted Solutions
Solution
‎01-05-2017 11:32 AM
Grand Advisor
Posts: 16,348

Re: PROC PRINT and titles

Use the BODYTITLE option on the ODS RTF statement and the titles will be included in the main page, rather than on the header.

 

ods rtf file='/folders/myfolders/sample.rtf' bodytitle style=meadow;

title 'This is a title not in the header';
proc print data=sashelp.class;
run;

ods rtf close;

https://support.sas.com/rnd/base/ods/odsrtf/rtf-tips.pdf

View solution in original post


All Replies
Solution
‎01-05-2017 11:32 AM
Grand Advisor
Posts: 16,348

Re: PROC PRINT and titles

Use the BODYTITLE option on the ODS RTF statement and the titles will be included in the main page, rather than on the header.

 

ods rtf file='/folders/myfolders/sample.rtf' bodytitle style=meadow;

title 'This is a title not in the header';
proc print data=sashelp.class;
run;

ods rtf close;

https://support.sas.com/rnd/base/ods/odsrtf/rtf-tips.pdf

New Contributor
Posts: 4

Re: PROC PRINT and titles

Thank you!
Post a Question
Discussion Stats
  • 2 replies
  • 841 views
  • 2 likes
  • 2 in conversation