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.
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
Thanks a lot! It was very helpful! 👍
- Dr. Abhijeet Safai
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.