You want this ?
Here is GTL solution. Another is using PROC REPORT check the next post.
data report;
input id label & $20. a & $20. b;
cards;
1 Residual Statistics Observations 184
1 Residual Statistics Minimum 184
1 Residual Statistics Mean 184
1 Residual Statistics Maximum 184
1 Residual Statistics Std Dev 184
2 Fit Statistics Objective 184
2 Fit Statistics AIC 184
2 Fit Statistics AICC 184
2 Fit Statistics BIC 184
;
%let path= c:\temp; *the path stored the picture of report and desired RTF file;
ods _all_ close;
options printerpath=png nonumber nodate papersize=(4.5cm 7cm) ;
title;
ods printer file="&path.\report.png" style=journal dpi=300;
proc report data=report nowd noheader style(report)={frame=box};
columns id label a b;
define id/order noprint;
define label/order noprint;
compute before label;
if label ne lag(label) then n+1;
if n=1 then len=0;
else len=10;
x=' ';
line x $varying10. len;
line label $40.;
endcomp;
run;
ods printer close;
%sganno
data sganno;
%SGIMAGE(
IMAGE="&path.\report.png",
ANCHOR="CENTER" ,
BORDER="FALSE",
IMAGESCALE="FIT" ,
HEIGHT=100,
HEIGHTUNIT="PERCENT",
DRAWSPACE="LAYOUTPERCENT",
X1=50,
Y1=50,ID="BAR"
)
run;
proc template;
define statgraph y2axis;
begingraph;
layout lattice /rows=2 columns=2; * columngutter=10 rowdatarange=union row2datarange=union;
layout overlay;
histogram height / scale=percent yaxis=y;
densityplot height / normal();
endlayout;
layout overlay;
scatterplot x=weight y=height;
endlayout;
layout overlay;
loessplot x=weight y=height;
endlayout;
layout overlay / walldisplay=none yaxisopts=( display=none ) xaxisopts=( display=none ) ;
scatterplot x=weight y=height/markerattrs=(color=white);
annotate / id="BAR";
endlayout;
endlayout;
endgraph;
end;
run;
ods _all_ close;
options papersize=A4 leftmargin=0in rightmargin=0in leftmargin=0in rightmargin=0in;
ods rtf file="&path.\want.rtf" dpi=300 style=htmlblue;
proc sgrender data=sashelp.class template=y2axis sganno=sganno;
run;
ods rtf close;
... View more