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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1033 views
  • 0 likes
  • 2 in conversation