BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
DrAbhijeetSafai
Lapis Lazuli | Level 10

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
Lapis Lazuli | Level 10

@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-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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