Hi:
Thanks for the feedback. In RTF, it is fairly easy to underline or overline a text string using the \BRDRB or \BRDRT RTF control strings, but those are not available for PDF. However, you can use the BORDERBOTTOMSTYLE and BORDERBOTTOMCOLOR style attributes with PDF (in SAS 9.2).
Just curious -- are you using the JOURNAL style????
Also about your LINE statement. I believe if you look in the PROC REPORT doc,
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473628.htm
you will find this restriction -- very clearly explained:
Restriction: You cannot use the LINE statement in conditional statements (IF-THEN, IF-THEN/ELSE, and SELECT) because it is not executed until PROC REPORT has executed all other statements in the compute block.
Here's an example of using RTF control strings in contrast to the use of BORDERBOTTOMSTYLE and BORDERBOTTOMCOLOR style attributes for PDF (instead of the superscript or repeating underscores).
cynthia
[pre]
ods pdf file='c:\temp\underline_borderbottom.pdf' style=journal;
proc report data=sashelp.class(obs=2) nowd
style(lines)={just=c font_weight=bold font_size=11pt};
title "1) Using BORDERBOTTOM style attribute";
column name age height weight;
compute before _page_ /
style={borderbottomstyle=solid borderbottomcolor=black};
line '1.1 This is a caption. It says something about the report.';
endcomp;
run;
ods _all_ close;
ods rtf file='c:\temp\underline_RTFcontrol.rtf' style=journal;
proc report data=sashelp.class(obs=2) nowd
style(lines)={protectspecialchars=off just=c
font_size=11pt font_weight=bold};
title "2) With RTF Control Strings";
column name age height weight;
compute before _page_ /
style={pretext='\brdrb\brdrs\w1 '} ;
line '2.1 This is a caption. It says something about the report.';
endcomp;
run;
ods _all_ close;
[/pre]