<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Read Access Violation In Task [ SGPLOT ] in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Read-Access-Violation-In-Task-SGPLOT/m-p/21386#M546</link>
    <description>This looks like a problem that should be submitted to tech support.</description>
    <pubDate>Fri, 14 May 2010 16:41:46 GMT</pubDate>
    <dc:creator>barheat</dc:creator>
    <dc:date>2010-05-14T16:41:46Z</dc:date>
    <item>
      <title>Read Access Violation In Task [ SGPLOT ]</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Read-Access-Violation-In-Task-SGPLOT/m-p/21385#M545</link>
      <description>I use SAS9.2 phase 2.&lt;BR /&gt;
&lt;BR /&gt;
I have several databases. I did a loop to create enrollment over time using sgplot in a %Macro. Does anybody know what happen? I searched SAS help and can not find a result.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My codes are like:&lt;BR /&gt;
&lt;BR /&gt;
%macro test;&lt;BR /&gt;
&lt;BR /&gt;
%do flg  = 1 %to 2;&lt;BR /&gt;
&lt;BR /&gt;
 libname t Access .......;&lt;BR /&gt;
&lt;BR /&gt;
data enroll_3;  &lt;BR /&gt;
set t.demographics;&lt;BR /&gt;
...&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%* create graph;&lt;BR /&gt;
&lt;BR /&gt;
ods listing gpath = "c:\Temp" (url = none);&lt;BR /&gt;
            &lt;BR /&gt;
ods graphics on/reset&lt;BR /&gt;
          	    imagefmt  = gif&lt;BR /&gt;
     		    imagemap  = on&lt;BR /&gt;
     		    imagename = "En_&amp;amp;flg." &lt;BR /&gt;
     		    border    = off;&lt;BR /&gt;
&lt;BR /&gt;
proc sgplot data = enroll_3;&lt;BR /&gt;
			title 'Enrollment over time' ;&lt;BR /&gt;
			step x = newDate y = count / JUSTIFY= right &lt;BR /&gt;
                                LINEATTRS = (color = blue) &lt;BR /&gt;
				CURVELABELPOS= end CURVELABEL = 'Observed' ;&lt;BR /&gt;
			XAXIS   grid ;&lt;BR /&gt;
			yaxis   grid;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods graphics off;&lt;BR /&gt;
&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;When I run it. The first plot has been created but the second one does not.&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
LOG:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;For the first plot:&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: PROCEDURE SGPLOT used (Total process time):&lt;BR /&gt;
      real time           1.84 seconds&lt;BR /&gt;
      cpu time            0.42 seconds&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Listing image output written to C:\Temp\En_5.gif.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;For second plot:&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: There were 87 observations read from the data set WORK.ENROLL_3.&lt;BR /&gt;
&lt;BR /&gt;
MPRINT(DICTTOSAS):   ods graphics off;&lt;BR /&gt;
MLOGIC(DICTTOSAS):  %DO loop index variable I is now 2; loop will iterate again.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The data set WORK.ENROLL_3 has 75 observations and 7 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.01 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[]&lt;B&gt;ERROR:  Read Access Violation In Task [ SGPLOT ]&lt;/B&gt;&lt;BR /&gt;
Exception occurred at (58E2000D)&lt;BR /&gt;
&lt;BR /&gt;
Task Traceback&lt;BR /&gt;
Address   Frame     (DBGHELP API Version 4.0 rev 5)&lt;BR /&gt;
58E2000D  0F4CD734  sasxml:mcn_main+0x8F00D&lt;BR /&gt;
58DA7F0D  0F4CD7F0  sasxml:mcn_main+0x16F0D&lt;BR /&gt;
66F7C1F0  0F4CD96C  sasods:mcn_main+0x7B1F0&lt;BR /&gt;
66F5A53B  0F4CDC90  sasods:mcn_main+0x5953B&lt;BR /&gt;
66F35327  0F4CDCD0  sasods:mcn_main+0x34327&lt;BR /&gt;
66F34508  0F4CE0B8  sasods:mcn_main+0x33508&lt;BR /&gt;
47D20C7A  0F4CFF8C  sassgplo:mcn_main+0xFC7A&lt;BR /&gt;
01572854  0F4CFFA0  sashost:Main+0xC290&lt;BR /&gt;
0165E038  0F4CFFB4  sashost:Main+0xF7A74&lt;BR /&gt;
7C80B699  0F4CFFEC  kernel32:GetModuleFileNameA+0x1BA</description>
      <pubDate>Thu, 13 May 2010 17:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Read-Access-Violation-In-Task-SGPLOT/m-p/21385#M545</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-13T17:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read Access Violation In Task [ SGPLOT ]</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Read-Access-Violation-In-Task-SGPLOT/m-p/21386#M546</link>
      <description>This looks like a problem that should be submitted to tech support.</description>
      <pubDate>Fri, 14 May 2010 16:41:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Read-Access-Violation-In-Task-SGPLOT/m-p/21386#M546</guid>
      <dc:creator>barheat</dc:creator>
      <dc:date>2010-05-14T16:41:46Z</dc:date>
    </item>
  </channel>
</rss>

