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
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:
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:
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;
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 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.