I'm currently creating a new style using proc template (and Enterprise Guide). I want to have each row of data alternate colours (grey/white) and I've found this piece of code:
ods tagsets.tableeditor body="temp.htm"
This doesn't seem to work in EG as I get this message: WARNING: Tagset TAGSETS.TABLEEDITOR not found;
I'm new to all this styles/tagset stuff so maybe I'm missing something basic. Any help would be appreciated.
Then, run the code, which will install the template in your SASUSER.TEMPLAT item store. Then you can use the newly installed tagset as shown in the above web site and in the various papers that show how to use it.
It is also possible to get alternate colors with several other procedures. It is easier in SAS 9.2 than in SAS 9.1.3, but for example, this code will alternate colors using PROC REPORT and using several ODS destination:
ods tagsets.excelxp file='rep_graybar.xml' style=sasweb;
ods html file='rep_graybar.html' style=sasweb;
ods pdf file='rep_graybar.pdf' ;
ods rtf file='rep_graybar.rtf';
proc report data=sashelp.class nowd
title 'Highlight Every Other Row';
column name age height weight;
define name / order;
define age / display;
define height / display;
define weight / display;
** if tempvar is evenly divisible by 2, it is even;
** so highlight it with gray for the whole row;
tempvar + 1;
if mod(tempvar,2) eq 0 then
ods _all_ close;
If you want some of the other functionality of the TABLEEDITOR tagset, then you will have to download and install the template definition. If all you want to do is get alternating colors, you can achieve that with other methods.