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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 2 replies
  • 5728 views
  • 1 like
  • 2 in conversation