Hi: Another alternative is to use your PRETEXT technique for the report break and as for the other breaks. The only difference is that you need to build your style= override string into a variable for the CALL DEFINE statement. cynthia ods listing close ; ods html file='c:\temp\something.html' style=sasweb; proc report data=sashelp.class nowd; column sex age height; define sex / group noprint ; define age / group style(column)={cellwidth=1in}; define height / analysis SUM ; break after sex / summarize ; rbreak after / summarize; compute before sex / style=[just=l fontweight=bold]; text1=sex; line text1 $5.; endcomp; compute age; length pt $20 sstr $50 text1 $1; if _break_='_RBREAK_' then do; call define("age", 'style', 'style=[pretext="Total "]'); end; if upcase(_break_) = 'SEX' then do; pt= catx(' ', 'Subtotal of',text1); sstr = 'style=[pretext="'||trim(pt)||'"]'; ** use temporary variable for value of style override; call define("age", 'style', sstr); end; endcomp; run; ods html close;
... View more