BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Jinlf
Calcite | Level 5
my procedures are as follows: proc template; define style styles.myrtf; style table / cellpadding = 0 pt cellspacing = 0.75 pt borderwidth = 1.5 pt bordercolor = black borderstyle = solid frame = hsides rules = groups; style systemtitle from titlesandfooters / font = ('Arial', 10.5pt, Bold ); style data / font = ('Arial', 10pt ); style header / font = ('Arial', 10pt ); end; run; options nodate nonumber; title; ods rtf file="D:\test.rtf" style=styles.myrtf; proc report data=sashelp.class nowd; column Name ("Important variables" Sex Age Height Weight); run; ods rtf close;
无标题.png
1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

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

View solution in original post

3 REPLIES 3
Shmuel
Garnet | Level 18

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 '  ____________ ';

BrunoMueller
SAS Super FREQ

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

Cynthia_sas
SAS Super FREQ

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

 

underline.png

 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 9187 views
  • 3 likes
  • 4 in conversation