<?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: sas error : in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257080#M13584</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS﻿&lt;/a&gt;&amp;nbsp;ODS Table is correct - and it can be used before proc. If you're also&amp;nbsp;suppressing output then you have to use ODS output, so it's preferable&amp;nbsp;to use ODS OUTPUT in general.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2016 17:47:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-03-16T17:47:28Z</dc:date>
    <item>
      <title>Write Access Violation w PROC REG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257060#M13580</link>
      <description>&lt;P&gt;I am running a simple regression with the following code, with a data file, 21M in size, 4 columns (ID, date, amount, count), 300204 obs. I tested the code on a smaller size sample (2457 obs) and it ran smoothly. But with this larger sample (300204 obs), I got an error message after running about 23 hours. The message says:&lt;/P&gt;
&lt;P&gt;sas.exe has stopped working.&lt;/P&gt;
&lt;P&gt;A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.&lt;/P&gt;
&lt;P&gt;Then a button "close program".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log="D:\Analysis\30days.log";   /* to print log to a file */
run;&lt;BR /&gt;
ods table parameterEstimates=ana30.logfile; /* to save coefficients */
PROC REG DATA=ana30.mydata;
   BY ID ;
   MODEL amount= count ;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then in the windows event log, I saw 4 errors:&lt;/P&gt;
&lt;P&gt;Critical SAS error:&amp;nbsp; Write Access Violation REG Exception occurred at (65a9f27)&lt;/P&gt;
&lt;P&gt;Critical SAS error:&amp;nbsp; Write Access Violation REG Exception occurred at (1e49c0b)&lt;/P&gt;
&lt;P&gt;Critical SAS error:&amp;nbsp; Write Access Violation REG Exception occurred at (1e49afa)&lt;/P&gt;
&lt;P&gt;Critical SAS error:&amp;nbsp; Stack overflow detected REG Exception occurred at (4e849fc)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no idea which board to ask this question, and just try here and hope someone can give me some hints&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 12:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257060#M13580</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-03-17T12:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: sas error :</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257065#M13581</link>
      <description>&lt;P&gt;What does your SAS log say?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your data doesn't appear complex enough to cause any space issues...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;24 hours also seems like way too long for a 300K file&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 16:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257065#M13581</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-16T16:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: sas error :</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257068#M13582</link>
      <description>&lt;P&gt;Similar thing happened to me and often goes away after restarting SAS. If it doesn't, you should open a ticket with SAS Tech Support.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 16:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257068#M13582</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-03-16T16:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: sas error :</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257069#M13583</link>
      <description>&lt;P&gt;I see a several problems with your code:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;If ODS GRAPHICS are on, this will produce a bunch of graphs.&amp;nbsp; Be sure to explicitly set ODS GRAPHICS OFF;&lt;/LI&gt;
&lt;LI&gt;Use ODS SELECT ParameterEstiamtes to suppress the other output tables.&lt;/LI&gt;
&lt;LI&gt;I am not familiar with the ODS TABLE statement. I do not see it in the documentation. I presume you meant to use ODS OUTPUT&lt;/LI&gt;
&lt;LI&gt;Because PROC REG is an interactive procedure, the PROC REG statement will not create the ODS OUTPUT until you type QUIT.&amp;nbsp; Use the QUIT stataement in place of the RUN statement to exit PROC REG.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 16 Mar 2016 17:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257069#M13583</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-16T17:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: sas error :</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257080#M13584</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS﻿&lt;/a&gt;&amp;nbsp;ODS Table is correct - and it can be used before proc. If you're also&amp;nbsp;suppressing output then you have to use ODS output, so it's preferable&amp;nbsp;to use ODS OUTPUT in general.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 17:47:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257080#M13584</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-16T17:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: sas error :</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257081#M13585</link>
      <description>&lt;P&gt;Rick's answer is correct - most likely the QUIT is the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log="D:\Analysis\30days.log";   /* to print log to a file */
run;

ods graphics off;
ods select parameterEstimates;
ods table parameterEstimates=ana30.logfile; /* to save coefficients */
PROC REG DATA=ana30.mydata;
   BY ID ;
   MODEL amount= count ;
RUN;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Mar 2016 17:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257081#M13585</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-16T17:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: sas error :</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257084#M13586</link>
      <description>&lt;P&gt;As far as I can tell, ODS TABLE is not a documented statement.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 17:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257084#M13586</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-16T17:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: sas error :</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257124#M13588</link>
      <description>&lt;P&gt;Thank you for your replies and suggestions. I was doing something else so I did not follow up in time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I googled and found the solution (hopefully) &lt;A href="http://support.sas.com/kb/54/246.html" target="_self"&gt;http://support.sas.com/kb/54/246.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They have a hot fix and I just installed and followed their instructions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also use data from the work temporary library, not from the permanent library. Maybe this can be faster too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just output to the log, saving time to write log to the file (last time I got a message telling me log is full so I used this option). I forgot to clear the log last time before submitting the program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will see tomorrow if I have program again.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 20:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257124#M13588</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-03-16T20:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Write Access Violation w PROC REG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257267#M13601</link>
      <description>&lt;P&gt;Renamed to better specify the contents of the thread.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 12:35:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/257267#M13601</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-17T12:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: sas error :</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/264980#M13967</link>
      <description>&lt;P&gt;Thank you, &lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;A id="link_13" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #009999;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Reeza&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;. With your code, there was no error any more, and it ran much much faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry that I did not come back to update in time. Was testing running SAS on a high performance computation facility (Linux).&lt;/P&gt;
&lt;P&gt;One thing worthy to mention is, I tested my original program, which gave error on my windows7 PC, but it did not have any issue running on the HPC facility. And it finished much faster. I guess the HPC system has a much higher I/O (and of course faster CPU too).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 01:46:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Write-Access-Violation-w-PROC-REG/m-p/264980#M13967</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-04-20T01:46:58Z</dc:date>
    </item>
  </channel>
</rss>

