An Idea Exchange for SAS software and services

Comments
by Super User
on ‎06-14-2017 04:12 PM

Does SAS actually save color in the SAS log or is Display Manager just applying a set of rules to the lines of text to generate the color in the LOG window?  If so can SAS publish those rules?

by PROC Star
‎06-14-2017 04:26 PM - edited ‎06-14-2017 04:27 PM

@Tom, Chris H. describes how EG log coloring works in this thread, and links to a paper he wrote with a bit more info.  Looks like it's not just text parsing.  https://communities.sas.com/kntur85557/board/message?board.id=sas_eg&message.id=17774#M17774

by SAS Employee JodyC_SAS
on ‎07-06-2017 08:31 PM

I had a chance to test the undocumented system option $rtfcolor in Display Manager System (DMS). The syntax to insert the option in the sasv9.cfg file is: 

 -$rtfcolor

After invoking a new SAS session, I made the log window the active window and selected SAVE AS. I named the file and used the SAVE AS TYPE drop down menu to select RTF. 

 

The contents of the log in the resulting RTF file retained the color formatting. Using the WRTFSAVE command also worked as long as I had invoked SAS with the $rtfcolor system option. 


SAS Studio is in an active development state. I passed your suggestion to the developers to  allow the log window in SAS Studio to be saved as type RTF and retain the color formatting.  

 

Idea Statuses
Top Liked Authors