Hello, I am trying to make a report that that highlights some cells in a table. I have a matrix (say IND) that contains column and row indices created in iml, and pass it to proc template routine to hightlight the cells that correspond to IND. For example: proc template; define table CustomColor; cellstyle _COL_ = "want to place column index from IND" && _ROW_ = "want to place row index from IND" as {backgroundcolor=LightRed}; end; run; proc iml; tbl = TableCreateFromDataSet("Sashelp", "Class"); IND = {2 3, 4 2 5 4}; /% this means that I want to hightlight the matrix elements indexed by (2,3), (4,2) and (5,4). And the matrix IND is not hard-coded in practice. %/ call TablePrint(tbl) numobs=6 template="CustomColor"; quit; How can I write a program that template picks up the values defined in IND, and paint the cells properly? Thank you.
... View more