|Date: ||Fri, 23 Jan 2004 20:46:25 -0500|
|Reply-To: ||"Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||"Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>|
|Subject: ||Re: ODS/rtf + gchart bombs when runs in batch?|
"Huang, Ya" <yhuang@AMYLIN.COM> wrote in message
> Hi there,
> The following simple code if runs in batch will bomb and get the
> error message:
> ERROR: Read Access Violation In Task ( GCHART ]
> Exception occurred at (67D39B50)
> But if runs in interactive mode, it is OK.
> Also if the ods part is commented out, it runs OK in batch mode.
> Any idea?
> data xx;
> do k=1 to ranuni(333)*50;
> ods rtf file="c:\temp\junk.rtf";
> proc print;
> ods rtf close;
> filename gout "c:\temp\junk.emf";
> goptions reset=all device=emf gsfname=gout gsfmode=replace;
> proc gchart;
> vbar k;
Looks like you found a bug in the EMF device.
Using command line:
$ %sas8%\sas.exe -noovp -batch -noterminal -sysin <program>.sas
I get the same error (and same address!) as you.
Version 9.0 also gets the error.
Same type of error occurs if gchart changed to gplot; plot k*k; (more
evidence agains the driver)
Changing to device=wmg also gets you a Read Access Violation.
Changing to device=pdf (and bmp,png,gif,jpeg,saswmf,sasemf) all worked
I can't vouch for the veracity of the output generated by saswmf and sasemf,
but you might give them a try ?
Richard A. DeVenezia