LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2004, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 news:CFA430182ABF194BB9DFE04B2AADB321034F8C@API-EXCH-EVS1.amylin.com... > 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? > > Thanks > > Ya > ---------------------- > data xx; > do k=1 to ranuni(333)*50; > output; > end; > run; > > ods rtf file="c:\temp\junk.rtf"; > proc print; > run; > ods rtf close; > > filename gout "c:\temp\junk.emf"; > goptions reset=all device=emf gsfname=gout gsfmode=replace; > > proc gchart; > vbar k; > run;

Ya:

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 without error.

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 http://www.devenezia.com/downloads/sas/macros/


Back to: Top of message | Previous page | Main SAS-L page