Hi, there: I am trying to generate flow chart by using PROC GSLIDE (SAS9.3), but my following code generates spaces on figure's upper & lower space, which I do not want. I have no idea about how to exclude them. Please help me. Thank you in advance. options
nonumber
nodate
noxwait
noxsync
nocenter
mprint
;
options
nodate
papersize="A4"
orientation=portrait
topmargin=3.0cm bottommargin=3.0cm leftmargin=2.5cm rightmargin=2.5cm
;
/*goptions gunit=cells hsize=6.3in vsize=5.3in;*/
%annomac;
%macro add_element(x=, y=, width=, height=, text=);
%rect(&x., &y., &x.+&width., &y.+&height., black, 1, 0.2);
%let i=1;
%do %until(%qscan(&text., &i., "|")=);
%label(&x.+0.5, &y.+&height.-&i.+0.5, "%qscan(&text., &i., "|")", black, 0, 0, 1, Times New Roman, 6);
%let i=%eval(&i.+1);
%end;
%mend add_element;
data final;
length function color style $16. text $60.;
retain xsys '6' ysis '6' hsys '6' when 'a' line 1 function 'label';
%add_element(x=5.0, y=36.5, width=30.0, height=1.5, text=%str( # of Subjects Enrolled));
%add_element(x=5.0, y=35.0, width=30.0, height=1.5, text=%str( XX));
%add_element(x=5.0, y=28.5, width=30.0, height=1.5, text=%str( # of Completers));
%add_element(x=5.0, y=27.0, width=30.0, height=1.5, text=%str( XX));
%add_element(x=40.0, y=27.0, width=35.0, height=3.0, text=%str( # of Subjects Discontinued| From the Study));
%add_element(x=40.0, y=25.5, width=35.0, height=1.5, text=%str( XX));
%line(19.5, 35.0, 19.5, 30.0, black, 1, 1);
%line(19.5, 32.5, 57.0, 32.5, black, 1, 1);
%line(57.0, 32.5, 57.0, 30.0, black, 1, 1);
run;
ods rtf file="XXXXX\test.rtf";***** Please specify Your Own Folder ;
proc gslide annotate=final;
run;
quit;
ods listing close;
ods rtf close;
... View more