Creating Your First RTF File
The best thing about creating RTF output is that you have to learn only one new piece of syntax: just change the keyword HTML to RTF in your ODS statement. It takes only a single simple command to begin creating an RTF file:
ODS RTF FILE='myfile.rtf';
One simple change that you can make for RTF output is to use the STYLE= option in the invocation statement to generate a report with a completely different look and feel for the output.
ODS RTF FILE='myfile2.rtf' STYLE=JOURNAL;
Just as with the ODS HTML statement, you can list a literal filename, or use a fileref to refer to a previously defined filename. Next, you insert your procedure or DATA step to create some output. Finally, you close the RTF file with the following: ...
Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.