BookmarkSubscribeRSS Feed
HitmonTran
Pyrite | Level 9

Hi,

 

I have a column that is indented in the first line but when it flows to the next line it doesn't align with that indentation. Any idea how to fix this?

 

output:

HitmonTran_0-1645029766130.png

proc report:

 

ods pdf file = "&path.\=&pgmout._&outp..pdf" startpage=no style= TLF_CN_9;
options orientation=landscape;

  
  proc report data=final nowindows center headline headskip missing split='@';
    column order1 order2 sort catdesc ("1.0 @(N=&trtgn1)" c_TRTG1) (" Placebo@(N=&trtgn2)" c_TRTG2) 
	                           			("2.0  (N=&trtgn3)" c_TRTG3) (" @Placebo@(N=&trtgn4)" c_TRTG4)  ("Total@(N=&alln)" c_all);

    define order1    / order order=internal noprint;
    define sort      / order order=internal noprint;
    define order2    / order noprint;
	define catdesc   / display ' ' style(column)={asis=on just=left cellwidth=4.4 in} flow style(header)={just=left font_size=9pt};
	define c_trtg1   / display " " style(column)={asis=on just=center cellwidth=1.2in} flow style(header)={just=center font_size=9pt};
	define c_trtg2   / display " " style(column)={asis=on just=center cellwidth=1.2in} flow style(header)={just=center font_size=9pt};
	define c_trtg3   / display " " style(column)={asis=on just=center cellwidth=1.2in} flow style(header)={just=center font_size=9pt};
	define c_trtg4   / display " " style(column)={asis=on just=center cellwidth=1.2in} flow style(header)={just=center font_size=9pt};
	define c_all / display " "  style(column)={asis=on just=center cellwidth=1.2in} flow style(header)={just=center font_size=9pt};

    break after sort / skip;
    compute after sort / style(lines)={font_size = 3pt};
      line " "; 
    endcomp;
    compute before order1;
	   line " ";
	endcomp;
  run;
 
ods _all_ close;
ods listing;

 

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

Not too sure where the indentation comes from. From the TLF_CN_9 style?

Can you change the style to use cell padding instead of indentation?

 

Or is it the value of the variables that start with a tab or similar?

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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
  • 1 reply
  • 972 views
  • 0 likes
  • 2 in conversation