Can I output the log in Word format as part of the program? I know PRINTTO does ASCII text as a default, but can it be used to produce output in other formats?
You can save the log as an RTF file, which will then open in Word. I fail to see the benefit or point of doing this, however.
SAS logs are just text files without any document-style formatting like different fonts, font sizes and so on, so I don't see any advantage at all in using Word format.
@Batman wrote:
If I'm having someone else review the log, it's easier to make comments, etc in Word.
I disagree. They can make comments just as easily in a text editor rather than a word processor.
Word can easily open any plain text file. Just save the log with a .txt extension to make it easier for Word to recognize it.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.