Hi,
I am not able to create the underline under the 'Characteristics" header in the below Image. Can some body please tell me what I am doing wrong using the code '^R/RTF'\brdrb\brdrs' or is there another alternative to create these underlines. Thank you.
options orientation = landscape errors = 2 missing = ' ' nofmterr ls = 175 validvarname = upcase
ods escapechar = '^';
ods results on;
ods _all_ close;
ods rtf file = "xx.rtf" style = trtf_style;
proc report data =SAShelp.class ls = 145 ps = 55 split = "?" headline center missing formchar(2) = '_'
style(header)=[asis=on just=c /*fontweight=bold*/] style=[borderwidth=.2pt cellspacing=0.1pt cellpadding=0pt];
** titles **;
** report **;
COLUMN ("^R/RTF'\brdrb\brdrs '" Name
("characterstics ^R/RTF'\brdrb\brdrs '" age height));
define name / order = internal style(header) = [just=l] style(column) = [just=l cellwidth=45.0% asis=on] id"name" ;
define age / order = internal style(header) = [just=c] style(column) = [just=c cellwidth=7.0% asis=on] "age" ;
define height / order = internal style(header) = [just=c] style(column) = [just=c cellwidth=8.5% asis=on] "height" ;
ods rtf close;
ods listing close;
ods _all_ close;
I runed your code and get no problem .
Alternative way is using STYLE statement.
COLUMN ( Name ("^S={borderbottomcolor=black borderbottomwidth=2} characterstics " age height));
I runed your code and get no problem .
Alternative way is using STYLE statement.
COLUMN ( Name ("^S={borderbottomcolor=black borderbottomwidth=2} characterstics " age height));
Thanks. Your code worked for some reason my word file not showing underline when I used the 'RTF..." code. Thanks again.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.