Hi
There is some definition involved, but it is possible to do, see this paper for more details.
https://support.sas.com/resources/papers/proceedings11/246-2011.pdf
Here is a sample program based on the paper mentioned.
ods escapechar="^";
proc report nowd data=sashelp.class
style(report)=[rules=none frame=void]
style(header)=[borderbottomcolor=black borderbottomwidth=2 background=_undef_]
;
column
('^{style[borderbottomcolor=white borderbottomwidth=2
bordertopcolor=black bordertopwidth=2]}' name)
('^{style[borderbottomcolor=black borderbottomwidth=2
bordertopcolor=black bordertopwidth=2]spanned header}'
age sex weight height)
;
compute after _page_ / style={bordertopcolor=black bordertopwidth=2};
line ' ';
endcomp;
run;
There might be other ways as well
Bruno
ou may find some hints in next link:
http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000220968.htm
you can underline titles on HTML, PDF and probably some other ODS outputs.
otherwise you can add TITLE2 ' ____________ ';
Hi
There is some definition involved, but it is possible to do, see this paper for more details.
https://support.sas.com/resources/papers/proceedings11/246-2011.pdf
Here is a sample program based on the paper mentioned.
ods escapechar="^";
proc report nowd data=sashelp.class
style(report)=[rules=none frame=void]
style(header)=[borderbottomcolor=black borderbottomwidth=2 background=_undef_]
;
column
('^{style[borderbottomcolor=white borderbottomwidth=2
bordertopcolor=black bordertopwidth=2]}' name)
('^{style[borderbottomcolor=black borderbottomwidth=2
bordertopcolor=black bordertopwidth=2]spanned header}'
age sex weight height)
;
compute after _page_ / style={bordertopcolor=black bordertopwidth=2};
line ' ';
endcomp;
run;
There might be other ways as well
Bruno
Hi:
Here's a very simple way using STYLE=JOURNAL and TEXTDECORATION style attribute.
ods escapechar="^";
ods rtf file='c:\temp\underline.rtf' style=journal;
proc report nowd data=sashelp.class ;
column name sex ('^{style[textdecoration=underline]Important Variables}' age height weight);
run;
ods rtf close;
which results in this (viewed in Word).
cynthia
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.