Test if the following works. If it generates a file that opens and shows a graph then your doing something wrong...most likely in your conditonal logic.
ods rtf file="c:\_localdata\test.rtf" style=meadow;
proc sgplot data=sashelp.class;
scatter x=weight y=height/group=sex;
run;
ods rtf close;
... View more