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
SAS Super FREQ

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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 2 replies
  • 2469 views
  • 2 likes
  • 3 in conversation