BookmarkSubscribeRSS Feed
Doug____
Pyrite | Level 9

For the following code:

 

proc report data = &id nowd split = "*" missing spacing = 0 out = export_a.&id;

column order aedecod &treatvar,header,(eyesx pct eventsx);

define order / ' ' noprint group order = internal ;

define aedecod/ ' ' group style = {cellwidth = 2.5in fontweight = bold just = l} ;

define &treatvar / ' ' across order = internal nozero format = trt_defo. style = {just = c};

define header / ' ' across nozero style = {just = c };

define eyesx / 'n' group style = {cellwidth = 0.4in just = c};

define eventsx / 'E' group style = {cellwidth = 0.4in just = c};

define pct / "(%)" group style = {cellwidth = 0.7in just = c};

run;

 

The variable header contains "^S={textdecoration = underline}     (N=xx)     "; The purpose is to span the underlining across three columns (n, (%) and E)

When header resolves, it produces several lines of underlining rather than just the few spaces requested. I have used similar syntax before without any issues.

Example:

 

_(N=xx)_____

______

_______

______  

Can someone point me in the direction of a solution? This is for the RTF destination.

2 REPLIES 2
Cynthia_sas
Diamond | Level 26

Hi, you have not posted any data, nor have you posted your ODS statements. You said it was ODS< but have not provided any info -- what style? what options are active? Any RTF option in effect? In my little test using SASHELP.CLASS, I see that the underline is restricted to the text only. I used a slightly different technique than you did. See the example below.
cynthia

 

underline.png

DrAbhijeetSafai
Lapis Lazuli | Level 10

Thanks a lot!  It was very helpful! 👍

 

- Dr. Abhijeet Safai

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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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