BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
rkk33
Obsidian | Level 7

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
1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

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

3 REPLIES 3
Reeza
Super User

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

ballardw
Super User

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;

rkk33
Obsidian | Level 7

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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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