Hi Everyone,
I want to print table sashelp.class with column AGE highlighted with yellow background.
Can anyone help me to do it?
Thank you,
HHCFX
proc report data=sashelp.class;
columns name age sex weight height;
define name / display;
define age / style=[background=yellow];
define sex / display;
define weight/ format=8.1;
define height/ format=8.1;
run;quit;
More complicated options are here:
http://www2.sas.com/proceedings/forum2008/224-2008.pdf
@hhchenfx wrote:
Hi Everyone,
I want to print table sashelp.class with column AGE highlighted with yellow background.
Can anyone help me to do it?
Thank you,
HHCFX
proc report data=sashelp.class;
columns name age sex weight height;
define name / display;
define age / style=[background=yellow];
define sex / display;
define weight/ format=8.1;
define height/ format=8.1;
run;quit;
More complicated options are here:
http://www2.sas.com/proceedings/forum2008/224-2008.pdf
@hhchenfx wrote:
Hi Everyone,
I want to print table sashelp.class with column AGE highlighted with yellow background.
Can anyone help me to do it?
Thank you,
HHCFX
Hi:
And a variation, if you want to be able to style the header cell separately from the data cells.
proc report data=sashelp.class;
columns name age sex weight height;
define name / display;
define age / style(header)={background=yellow font_style=italic}
style(column)={background=lightblue};
define sex / display;
define weight/ format=8.1;
define height/ format=8.1;
run;
quit;
Cynthia
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.