Device=WIN may work, but it is not the default driver that is used when you're in EG, unless you've changed your EG default. There's a difference between the device that's used for display on the screen and the device that's used to send the graphic output to a file. The device driver that is used with SAS/Graph inside EG is
[pre]
dev=ActiveX[/pre]
When you turn your SAS/Graph program into a stored process, you can choose which device driver should be used for the stored process by using an override of the default ODS options that pertain to graphic output, as shown:
[pre]
%let _GOPT_DEVICE = actximg;
%let _GOPT_XPIXELS = 640;
%let _GOPT_YPIXELS = 480;
*ProcessBody;
%stpbegin;
[/pre]
In this example, the default device is set to "ACTXIMG", which is like the ActiveX driver used by EG, but without the interactivity that's built into EG. You can also set the Xpixels and Ypixels (if you wanted to control the size of the graph. These are just a few of the "_GOPT_" options that are available for you to override. To learn more about SAS/Graph and stored processes and these options that you can override, refer to this site:
http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/reserved.html and this site has some more information about overriding input parameters:
http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/stpmacro.html
Good luck!
cynthia