03-22-2017 02:57 AM
I need to change color or make bold to character variable using proc format.
Please find below the code used.
length State County Community $10.;
input State $10.
California Calveras Wallace 1
proc format cntlout=colormodel(keep=fmtname start end label type sexcl eexcl);
value $State 'California' = "fontWeight:bold;";
value flag 1 = "";
length TYPE $32;
if FMTNAME eq 'STATE' then TYPE = 'flag';
else TYPE = 't';
format state $state.;
03-22-2017 04:08 AM
Text decoration is only possible in reporting procedures. There are numerous papers explaning anything relevant in detail.
03-22-2017 06:05 AM
That's not how proc format works. It acts as a recoding procedure with the rules being the input.
Style such as colour and font are not valid in a SAS dataset.
So what are you trying to do?
03-22-2017 07:50 AM
Yes I am trying to change Style such as colour and font in a SAS dataset to show in a web browser through SAS SNA and this browser is accessing this table and i need to do conditional highlighting
03-22-2017 08:22 AM
Search on lexjansen.com for papers by Cynthia Zender that show how to create stylish reports.