BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

Hello

If I use proc report and I want to color (background color) all cells in specific column.

How can I do it.

 

For example:

I want to color all cells in column "Model"

 

Proc Report data=sashelp.cars NOWD;
Columns _ALL_;
define _all_ / display;
Run;
3 REPLIES 3
Ronein
Onyx | Level 15

Thank you.

This code for example add background color only to column header

define weight / 'Weight'  style(header)={background=lightyellow};

The question is how to add background color to the cells under specific column?

 

sb51469
Fluorite | Level 6
Simple, replace the keyword header in style with column and all cells in the weight variable will have lightyellow background.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1329 views
  • 2 likes
  • 3 in conversation