Hi:
Since you specifically mentioned a DEFINE statement, that indicates that you want a COLUMN header to be underlined using PROC REPORT, not a SAS TITLE statement. The RTF control string method will work, but there is a somewhat simpler way to underline column headers. You can accomplish either DEFINE or TITLE underlining using the TEXTDECORATION style attribute, as shown here:
ods tagsets.rtf file='c:\temp\underline_define.rtf';
ods escapechar='^';
title1 '^{style[textdecoration=underline]xxx yyy zzz}';
proc report data=sashelp.class ;
column name age sex height weight;
define name / 'The Name'
style(header)={textdecoration=underline width=1.5in};
define age / 'The Age'
style(header)={textdecoration=underline width=1.5in};
run;
ods tagsets.rtf close;
and these are the results:
and if you change the style to JOURNAL, then this is what you get:
cynthia
... View more