The SAS Output Delivery System and reporting techniques

Nested header with underlining not working correctly

Reply
Contributor
Posts: 30

Nested header with underlining not working correctly

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.

SAS Super FREQ
Posts: 8,820

Re: Nested header with underlining not working correctly

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

Ask a Question
Discussion stats
  • 1 reply
  • 262 views
  • 0 likes
  • 2 in conversation