Help using Base SAS procedures

can we change the color of log output?

Reply
Regular Contributor
Posts: 222

can we change the color of log output?

Hello guys,

When we run cocd:  %put you are beautiful.

this will show on the log ,in black color,

how we can change it show in other color?

Thanks!

Respected Advisor
Posts: 3,777

Re: can we change the color of log output?

189  %put NOTE: makes it blue;

NOTE: makes it blue

190  %put NOTE- does too.;

      does too.

Regular Contributor
Posts: 222

Re: can we change the color of log output?

Thank you,

Is that possible just change the color and not put the keywords :NOTE or ERROE or WARNING in the log?

Thanks!

Mike

Respected Advisor
Posts: 3,777

Re: can we change the color of log output?

I don't know.  If you use - instead of : as in my example the word is omitted but not the space.

Regular Contributor
Posts: 222

Re: can we change the color of log output?


This mothod is good enough.

Thanks a lot.

Mike

Super User
Posts: 17,831

Re: can we change the color of log output?

And similar changes for

ERROR: ERROR- and WARNING: WARNING-

Super User
Posts: 10,500

Re: can we change the color of log output?

You can change the colors in the log using the DM command.

in a program you can use to set the colors for the ERROR: WARNING: text.

colors accepted are red black white gray yellow cyan magenta or those colors and reverse (which makes the stated color the background and the text the background color.

the WSAVE will save the current settings across SAS sessions.

dm 'log; color error red; color warning yellow; wsave;'

Regular Contributor
Posts: 222

Re: can we change the color of log output?


Thank you!

except error, warning and note, is there any other options?

If we use dm statement for change color of NOTE ,we will change every NOTEs' color in the log,

Is that possible we just change one Note's color in the log and keep other notes' color as their original?

Thanks

Regular Contributor
Posts: 222

Re: can we change the color of log output?

Thanks

Rio
N/A
Posts: 1

Re: can we change the color of log output?

Or, you can simply do something like:

log "color warning green reverse" continue;

log "color error red reverse" continue;

Ask a Question
Discussion stats
  • 9 replies
  • 2862 views
  • 3 likes
  • 5 in conversation