- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 12-16-2009 04:45 PM
(1499 views)
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?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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]
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]
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!