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
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.