Features: |
DELETE statement TDEF statement TDELETE statement TREPLAY statement |
Other features: |
FILENAME statement ODS HTML statement ODS PDF statement ODS RTF statement
OPTIONS statement ORIENTATION= option PROC GCHART |
%let goutname=height;
proc greplay nofs tc=work.tempcat igout=work.gseg; delete &goutname; tdelete grtemp; run; quit;
proc greplay tc=work.tempcat nofs; tdef grtemp des="One panel template with border" 1/llx=5 lly=5 ulx=5 uly=95 urx=95 ury=95 lrx=95 lry=5 color=cx7C95CA; run; quit;
goptions reset=all nodisplay noborder xpixels=520 ypixels=520;
ods html close;
ods listing style=listing;
title "Average Height by Age and Sex"; proc gchart data=sashelp.class; vbar age / sumvar=height discrete type=mean group=sex name="&goutname"; run; quit;
filename tifout ".\&goutname..tif";
goptions display device=tiffp gsfname=tifout; proc greplay nofs tc=work.tempcat igout=work.gseg; template grtemp; treplay 1:&goutname name="t&goutname"; run; quit;
goptions reset=all device=png noborder xpixels=520 ypixels=520;
options orientation=landscape; ods listing close; ods html file="&goutname..html" style=listing; ods pdf file="&goutname..pdf" style=listing; ods rtf file="&goutname..rtf" style=listing image_dpi=72; proc greplay nofs tc=work.tempcat igout=work.gseg; template grtemp; treplay 1:&goutname name="t&goutname"; run; quit;
options orientation=portrait;
ods _all_ close; ods html;
proc greplay tc=work.tempcat nofs; tdef grtemp des="One panel template with border" 1/llx=5 lly=5 ulx=5 uly=95 urx=95 ury=95 lrx=95 lry=5 color=cx7C95CA; run; quit;
title "Average Height by Age and Sex"; proc gchart data=sashelp.class; vbar age / sumvar=height discrete type=mean group=sex name="&goutname"; run; quit;
goptions display device=tiffp gsfname=tifout; proc greplay nofs tc=work.tempcat igout=work.gseg; template grtemp; treplay 1:&goutname name="t&goutname"; run; quit;
options orientation=landscape; ods listing close; ods html file="&goutname..html" style=listing; ods pdf file="&goutname..pdf" style=listing; ods rtf file="&goutname..rtf" style=listing image_dpi=72; proc greplay nofs tc=work.tempcat igout=work.gseg; template grtemp; treplay 1:&goutname name="t&goutname"; run; quit;