The SAS Output Delivery System and reporting techniques

How to output raw text to RTF destination with a specific font

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 12
Accepted Solution

How to output raw text to RTF destination with a specific font

Hi,

 

When generating tables and listings for a clinical study report (as in the attachment), in order to fit a lot of columns on a page and to avoid bells and whistles like borders and shadings, I output to a plain text file (ods listing file="report.txt"), then I cut and paste it to MS Word, setting a SAS Monospace font of size 7, but now that I have too many listings to produce, I would like to do it automatically (that is I would like to output directly to an RTF file with the specified font). If there is an easy solution for that, what is it? Otherwise what should I learn do solve this? I use SAS 9.2.

 

Thanks for any tips

Rkk33


Listing.png

Accepted Solutions
Solution
‎03-14-2016 04:27 AM
Super User
Posts: 19,770

Re: How to output raw text to RTF destination with a specific font

You need to customize your own template with the spaces and font required.

 

Here's an example of one that I've used to customize my reports.

It might help you get started with yours:

https://gist.github.com/statgeek/9603140

View solution in original post


All Replies
Solution
‎03-14-2016 04:27 AM
Super User
Posts: 19,770

Re: How to output raw text to RTF destination with a specific font

You need to customize your own template with the spaces and font required.

 

Here's an example of one that I've used to customize my reports.

It might help you get started with yours:

https://gist.github.com/statgeek/9603140

Super User
Posts: 11,343

Re: How to output raw text to RTF destination with a specific font

This may repeat @Reeza's information but I can't access Github from work. One approach would be to create a new ODS style and set the font and size everywhere where to the monospace font.

 

Then use that style on an ODS RTF (or tagsets.RTF) statement:

 

ODS RTF file="path\file.rtf" style=MySpecialMono;

 

<output generating procedures>

 

ODS rtf close;

Occasional Contributor
Posts: 12

Re: How to output raw text to RTF destination with a specific font

Thanks a million Ballardw and Reeza. I am looking into PROC TEMPLATE now, hopefully I will be writing with a style in no time. For any PROC-TEMPLATE-specific questions I will open a new thread.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 525 views
  • 3 likes
  • 3 in conversation