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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 9 replies
  • 8476 views
  • 3 likes
  • 5 in conversation