BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.

Dear All,

 

Greetings!

 

I would like to know how to create a line below spanning header in rtf. I have tried this solution by Ksharp but that is creating a box which is not required. 

 
Thanks in advance. 
 
- Dr. Abhijeet Safai
Dr. Abhijeet Safai
Certified Base and Clinical SAS Programmer
Associate Data Analyst
Actu-Real
1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

Here is another way:

 

ods rtf file='c:\temp\temp.rtf' style=journal bodytitle;
proc report data=sashelp.class nowd style={outputwidth=80%};
column name age ("(*ESC*)R'\brdrb\brdrs\brdrw15'Span Header" weight height) ;
define name/display ;
define age/display;
run;
ods rtf close;

Ksharp_0-1709702108371.png

 

View solution in original post

3 REPLIES 3
Ksharp
Super User

Here is another way:

 

ods rtf file='c:\temp\temp.rtf' style=journal bodytitle;
proc report data=sashelp.class nowd style={outputwidth=80%};
column name age ("(*ESC*)R'\brdrb\brdrs\brdrw15'Span Header" weight height) ;
define name/display ;
define age/display;
run;
ods rtf close;

Ksharp_0-1709702108371.png

 

DrAbhijeetSafai
Pyrite | Level 9

@Ksharp , Thank you very much! Yes, this other one worked very well. Many thanks once again!

 

Thank you.

 

- Dr. Abhijeet Safai

Dr. Abhijeet Safai
Certified Base and Clinical SAS Programmer
Associate Data Analyst
Actu-Real
Ksharp
Super User

Of course. My original code is also worked.

If that doesn't work, post your code and data .

 

ods rtf file='c:\temp\temp.rtf' style=journal bodytitle;
proc report data=sashelp.class nowd style={outputwidth=80%};
column name age ('(*ESC*)S={borderbottomwidth=2 borderbottomcolor=black}Span Header' weight height) ;
define name/display ;
define age/display;
run;
ods rtf close;

Ksharp_0-1709702332203.png

 

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
  • 3 replies
  • 446 views
  • 2 likes
  • 2 in conversation