The Stored Processes developer guide gives the example code for creating a image output. That works fine standalone. But I was not able to mix it with a text output. Please see the following code. Any suggestions?
data rpt;
a=1; b=1; output;
a=3; b=2; output;
a=2; b=4; output;
run;
ods html body=_webout(nobot) rs=none;
proc print data=rpt;
run;
ods html close;
%let old=%sysfunc(stpsrv_header(pragma, nocache));
goptions gsfname=_webout gsfmode=replace
dev=jpeg xpixels=400 ypixels=300;
proc gplot data=rpt;
plot a*b;
run; quit;