Your SAS programs, embedded in web apps and elsewhere

SAS/Graph OPTIONS in Stored Process

Reply
N/A
Posts: 0

SAS/Graph OPTIONS in Stored Process

I have used PROC GCHART to plot some box graphs in SAS code and built it into a stored process. But in EG the shapes of the graph change a lot and I'm given this NOTE: "Some of your options or statements may not be supported with the Activex or Java series of devices. Graph defaults for these drivers may be different from other SAS/GRAPH device drivers." While I do need the exactly same shapes for the graphs. Is there any setting or code that can help me get exact same graphs under SAS and EG? Thanks!
N/A
Posts: 0

Re: SAS/Graph OPTIONS in Stored Process

Posted in reply to deleted_user
I found it. Just add "goption dev=win" which is default setting in SAS.
SAS Super FREQ
Posts: 8,864

Re: SAS/Graph OPTIONS in Stored Process

Posted in reply to deleted_user
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
N/A
Posts: 0

Re: SAS/Graph OPTIONS in Stored Process

Posted in reply to deleted_user
Great! Thank you!!
Ask a Question
Discussion stats
  • 3 replies
  • 235 views
  • 0 likes
  • 2 in conversation