Is there a way to underline a Variable using ODS output and a Put Statement? I found the logic below for underlining text but not sure if there is similar syntax for underlining variables in a customer report using data _null_ and Put statement. Recently converted to PC SAS from mainframe SAS. Using mainframe SAS with JCL control statements, the Overprint statement worked well for underlining Variables in a customer report. After converting to PC SAS and running the same report the Overprint statement just adds a line below the variable and prints the underline.
OPTIONS FORMCHAR="|----|+|---+=|-/\<>*";
ods escapechar='^'; ods rtf file='underline.rtf';
data _null_; file print;
/* syntax if ESCAPECHAR used has special meaning in RTF */ *text='^S={protectspecialchars=off}\ul Underline keywords\ul0 only.';
/* syntax if ESCAPECHAR used does not have special meaning in RTF */ text='^\ul Underline keywords^\ul0 for emphasis.';
put text; run;
ods rtf close;
... View more