Good morning, I am trying to create the report and higlight one field based on another field meaning. It is similar to what I found in SAS communiy: proc report nowd data=sashelp.class; col name sex age weight height; compute height; if sex='F' then do; call define(_col_,"style","style={background = pink}"); end; endcomp; run; But the thing is if you use, let's say, Weight instead of Sex field in a compute block - it doesn't work! proc report nowd data=sashelp.class;; col name sex age weight height; compute height; if weight>100 then do; call define(_col_,"style","style={background = pink}"); end; endcomp; run; In my data, I am creating an additional field in dataset and after that I am trying to use it as an indicator to highlight the other filed. Like, data test; set sashelp.class; letter = substr(name,1,1); run; proc report nowd data=test; col name sex age weight height letter; compute height; if letter="A" then do; call define(_col_,"style","style={background = pink}"); end; endcomp; run; This code again doesn't give me desired result. Can somebody give me a hint WHY?
... View more