BookmarkSubscribeRSS Feed
Mike_Davis
Fluorite | Level 6

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!

9 REPLIES 9
data_null__
Jade | Level 19

189  %put NOTE: makes it blue;

NOTE: makes it blue

190  %put NOTE- does too.;

      does too.

Mike_Davis
Fluorite | Level 6

Thank you,

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

Thanks!

Mike

data_null__
Jade | Level 19

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

Mike_Davis
Fluorite | Level 6


This mothod is good enough.

Thanks a lot.

Mike

Reeza
Super User

And similar changes for

ERROR: ERROR- and WARNING: WARNING-

ballardw
Super User

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;'

Mike_Davis
Fluorite | Level 6


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

Mike_Davis
Fluorite | Level 6

Thanks

Rio
Calcite | Level 5 Rio
Calcite | Level 5

Or, you can simply do something like:

log "color warning green reverse" continue;

log "color error red reverse" continue;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 9 replies
  • 10923 views
  • 3 likes
  • 5 in conversation