It is not possible to change the background colour of a row in a dataset.
Edit: If you want a report, using proc report would be my first choice. There are many papers explaining how to change the background colour conditionally, i am sure you will find something adaptable to your issue.
%let colorgrade=10; Data have; Input grade nr obligo2205 obligo2204; Cards; 2 80000 200 220 3 70000 190 210 4 200000 400 370 5 250000 500 480 6 280000 520 510 7 180000 280 320 8 140000 210 215 9 90000 140 130 10 30000 90 92 ; Run; proc report data=have nowd; define grade/display; compute grade; if grade=&colorgrade. then call define(_row_,'style','style={background=red}'); endcomp; run;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.