Date: Tue, 8 Jan 2008 17:23:25 -0800
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
Subject: Re: Export Graph to gif Enterprise Guide vs SAS-Base
Content-Type: text/plain; charset=ISO-8859-1
On Jan 7, 12:46 am, gerben <gerben_ja...@hotmail.com> wrote:
> I want to export a graph to a gif file on my local disk. The following
> code doesnt't work in SAS Enterprise Guide 4.1 (184.108.40.2060).
> filename gout "C:\Temp\test01.gif";
> goptions device=gif gsfname=gout gsfmode=replace;
> proc gchart data=sashelp.class;
> vbar age;
> The graph is made, but in a different file C:\SASwork
> \_TD356\Prc2\gchart.gif. There are no error messages in the log. If I
> run the exact same code in SAS 9.1.3 the result is like I expected.
> Can anybody explain this difference and tell me how I can do the same
> thing in EG.
> Thanks in advance,
I can't explain it, but I had the same problem yesterday. With the
attached code it now goes to the correct directory, but SAS
automatically names the gif outputs sequentially, while I want to name
them myself. That's what the &yyyyq text indicates. That wouldn't be
important for you, but the code may help. Just input your CDrive for
the paths and it should work. good luck.
ods html file= "/wamu/erm_sas_analytics/sas/hlrm/Environment/Data/
/* generate the map without rural county boundaries*/
proc gmap data=fittedhpi map=newmap all ;
choro HPImsChg4 / discrete coutline=black des='gboundry-1'/
*nolegend*/ /*annotate=maplabel*/ coutline=gray;
format HPImsChg4 hpichange.;
id state county;
ods html close;