i removed lines now there is a new task that decimal places should be in a order like N 3217 1986 mean 64.70 64.98 Std 3.594 3.556 Min 54.75 51.5 Max 76.5 76 options orientation=landscape;
ods listing close;
ods rtf file='D:\report\heart_task1.rtf' startpage=no style=journal;
ods escapechar='^';
title 'Demographic of heart with height';
proc report data=st2 style(report)={rules=none frame=hsides cellspacing=0 cellpadding=0}STYLE(header) = [foreground=black background=cxD9D9D9
cellheight=.23in
borderbottomwidth=.5pt borderbottomcolor=black
bordertopwidth=.5pt bordertopcolor=black
borderleftwidth=.5pt borderleftcolor=cxD9D9D9
borderrightwidth=.5pt borderrightcolor=cxD9D9D9]
nowd;
column sex alive dead total;
define sex/display ' ';
compute sex;
if sex='Male' or sex='Female' or sex='N' or sex='Mean' or sex='Std' or sex='Min' or sex='Max' then do;
call define (_col_,'style','style={leftmargin=.30in}');
end;
endcomp;
define alive/display "Alive(N=&nvar1)" style(column)={vjust=middle};
define dead/display "Dead(N=&nvar2)" style(column)={vjust=middle};
define total/display "Total(N=&nvar3)"style(column)={vjust=middle};
run;
footnote 'Please add above values in the table';
ods rtf close;
... View more