The SAS Output Delivery System and reporting techniques

Different styles in the same RTF file.

Reply
N/A
Posts: 0

Different styles in the same RTF file.

I have an RTF file which contains multiple types of reports. Each type of report is created with a different PROC REPORT; statement. Is there an easy way to change the style each report uses without writing to multiple files, or do I have to pick a base style and code the changes to all the elements as options to each PROC REPORT?
SAS Super FREQ
Posts: 8,743

Re: Different styles in the same RTF file.

Hi:
It is possible to change styles "mid-document" as shown in the example code below. The key is to ONLY use the STYLE= option on your intermediate ODS RTF statement(s). I have used STARTPAGE=NO so you can easily compare all 3 output styles on 1 page.

cynthia
[pre]
ods rtf file='c:\temp\chgstyle.rtf' style=journal startpage=no;

title 'Change Style in ODS RTF';
proc report data=sashelp.class(obs=3) nowd;
run;

ods rtf style=ocean;

proc report data=sashelp.class(obs=3) nowd;
run;

ods rtf style=watercolor;

proc report data=sashelp.class(obs=3) nowd;
run;

ods rtf close;
[/pre]
N/A
Posts: 0

Re: Different styles in the same RTF file.

Thank you!
Ask a Question
Discussion stats
  • 2 replies
  • 153 views
  • 0 likes
  • 2 in conversation