The SAS Output Delivery System and reporting techniques

Tagsets.tableeditor and EG

Occasional Contributor
Posts: 17

Tagsets.tableeditor and EG

Hi there,

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.

Posts: 9,373

Re: Tagsets.tableeditor and EG

TAGSETS.TABLEEDITOR is not delivered with SAS 9.1.3, by default, since it was developed AFTER 9.1.3 was released. I'm not sure whether it is delivered with SAS 9.2 or not. At any rate, you can download the tagset template for TAGSETS.TABLEEDITOR from this site,

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;
compute name;
** 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
call define(_ROW_,'STYLE','style={background=#eeeeee}');
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.

Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation