First of all I am funning version 9.4 Your code ran fine, so I added to it until I got a failure. The following code produces the error: /* ods _all_ close;
ods listing gpath="."; */
ods listing;
axis1 label=(font="Arial" h=2.5 'Ring Number') value=( font="Arial" h=2.5) order=0 to 70 by 10 major=(width=20) minor=none width=20 color=black;
axis2 label=(angle=90 h=2.5 font="Arial" 'Distance (mm)') value=( font="Arial" h=2.5) major=(width=20) order=0 to 200 by 50 minor=none width=20 color=black;
legend1 cborder=black label=(font="Arial" h=2 'Tree') across=1 mode=protect position=(bottom right inside) value=( font="Arial" h=2);
options orientation=landscape;
filename plot "sastest.tif";
goptions device=tiffb gsfname=plot gsfmode=replace colors=(BLACK) xpixels=6000 ypixels=4800 xmax=10 in ymax=8 in;
proc gplot data=sashelp.class;
plot weight*height=sex/haxis=axis1 vaxis=axis2 legend=legend1;
run;
quit;
proc print data=sashelp.class; The key to failure is using the legend. The legend1 statement does not cause an error by itself, but when it is used with legend=legend1, it produces the error. I appreciate all of your help, but if you don't get any response from me for a couple of weeks it is not that I am uninterested, but my timing was off. I'm about to go on vacation for a couple of weeks and will only return to this problem upon my return.
... View more