Desktop productivity for business analysts and programmers

Code works in Base SAS but not in Guide

Reply
New Contributor
Posts: 2

Code works in Base SAS but not in Guide

symbol1 interpol=rcclm95 value=circle cv=red ci=pink co=blue;
symbol2 interpol=rcclm95 value=square cv=green ci=yellow co=orange;

proc gplot data=sashelp.class;
plot height*weight=1 / regeqn;
plot2 age*weight=2 / regeqn;
run;


Why are the equations not displayed in Guide 4.2 but show up fine in Base SAS?
SAS Super FREQ
Posts: 8,819

Re: Code works in Base SAS but not in Guide

Hi:
It is possible that the REGEQN option is not supported in the device that's used in the creation of EG output. When you go to the Tools--> Options menu, look for the Results Option in the navigation pane and click on the Graph results option. if the Graph results option for Graph Format is set to "ActiveX" or "ActiveX image", then try changing the value to GIF or JPEG and see whether you get the REGEQN to appear.

The path may be slightly different to change Graph options in 9.2. The bottom line is that if you search in support.sas.com using the search string:
REGEQN ActiveX

you will see a hit on a documentation topic entitled "Summary of ActiveX and Java Support for PROC GPLOT". You will see that REGEQN is not always supported using these drivers (which is the EG default for graph creation). This is a good topic to consult when you are using SAS/GRAPH and EG because some options that work with graphic types like PNG, GIF or JPEG do not always work with ActiveX and/or Java.

cynthia
Community Manager
Posts: 2,889

Re: Code works in Base SAS but not in Guide

Cynthia has it right. A simple workaround would be to add this to the top of your code:

options device=PNG;

Chris
SAS Super FREQ
Posts: 8,819

Re: Code works in Base SAS but not in Guide

Thanks, Chris. And I think you meant to type
goptions device=PNG;

cynthia
Community Manager
Posts: 2,889

Re: Code works in Base SAS but not in Guide

Actually, the DEVICE option works as GOPTION or OPTION. Try it!
SAS Super FREQ
Posts: 8,819

Re: Code works in Base SAS but not in Guide

That is totally cool! I'd always used GOPTIONS method, but indeed, DEVICE= would work in either statement, OPTIONS or GOPTIONS.

cynthia
Ask a Question
Discussion stats
  • 5 replies
  • 210 views
  • 0 likes
  • 3 in conversation