BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SASuserlot
Barite | Level 11

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.

SASuserlot_0-1643136239524.png

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;
1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

I runed your code and get no problem .

Alternative way is using STYLE statement.

 

COLUMN  ( Name ("^S={borderbottomcolor=black borderbottomwidth=2} characterstics "  age height));

View solution in original post

2 REPLIES 2
Ksharp
Super User

I runed your code and get no problem .

Alternative way is using STYLE statement.

 

COLUMN  ( Name ("^S={borderbottomcolor=black borderbottomwidth=2} characterstics "  age height));
SASuserlot
Barite | Level 11

Thanks. Your code worked for some reason my word file not showing underline when I used the 'RTF..." code. Thanks again.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 6632 views
  • 1 like
  • 2 in conversation