<?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: proc reg error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402685#M97817</link>
    <description>&lt;P&gt;Try to use BY statement of PROC REG .&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 11:33:34 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-10-10T11:33:34Z</dc:date>
    <item>
      <title>proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402635#M97804</link>
      <description>&lt;P&gt;I am running a programme which includes several thousand regressions and I need the ods outputs.. The programme has failed twice with the following log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Freeing Memory Not Allocated Pool [00000000024F0210] Value [000000002C8D8070] WM Task &lt;BR /&gt;Pool:REG .&lt;/P&gt;
&lt;P&gt;Traceback for Thread [0000000002598650] WM Task Pool:REG&lt;/P&gt;
&lt;P&gt;0000000001FC878E 0000000023E64800 tkmk:tkBoot+0x16A4E&lt;BR /&gt;000000000377A101 0000000023E64808 &lt;BR /&gt;sashost:Main+0x325E1&lt;BR /&gt;0000000006EE4C34 0000000023E64848 sasods:tkvercn1+0x73BF4&lt;BR /&gt;0000000007083BEA &lt;BR /&gt; 0000000023E688B0 sasods:tkvercn1+0x212BAA&lt;BR /&gt;0000000006ED4B72 0000000023E6AB40 &lt;BR /&gt;sasods:tkvercn1+0x63B32&lt;BR /&gt;000000002509D33A 0000000023E6AB48 &lt;BR /&gt;sasreg:tkvercn1+0x11C2FA&lt;BR /&gt;0000000024FF865C 0000000023E6F330 &lt;BR /&gt;sasreg:tkvercn1+0x7761C&lt;BR /&gt;0000000024F92CE1 0000000023E6F620 &lt;BR /&gt;sasreg:tkvercn1+0x11CA1&lt;BR /&gt;0000000024F90C67 0000000023E6F6E0 &lt;BR /&gt;sasreg:tkvercn1+0xFC27&lt;BR /&gt;0000000024F81E02 0000000023E6F770 sasreg:tkvercn1+0xDC2&lt;BR /&gt;00000000051FC5E7 &lt;BR /&gt; 0000000023E6F778 sasxshel:tkvercn1+0x4B5A7&lt;BR /&gt;000000002509D0E2 0000000023E6F890 &lt;BR /&gt;sasreg:tkvercn1+0x11C0A2&lt;BR /&gt;0000000024F816F9 0000000023E6FBF0 &lt;BR /&gt;sasreg:tkvercn1+0x6B9&lt;BR /&gt;00000000037589DB 0000000023E6FF20 sashost:Main+0x10EBB&lt;BR /&gt;000000000375E62D &lt;BR /&gt;0000000023E6FF50 sashost:Main+0x16B0D&lt;BR /&gt;0000000076B959CD 0000000023E6FF58 &lt;BR /&gt;kernel32:BaseThreadInitThunk+0xD&lt;BR /&gt;0000000076DCA561 0000000023E6FF88 ntdll:RtlUserThreadStart+0x21&lt;BR /&gt; &lt;BR /&gt;ERROR: An exception has been encountered.&lt;BR /&gt;Please contact technical support and provide them with the following traceback information:&lt;BR /&gt; &lt;BR /&gt;The SAS task name is [REG]&lt;BR /&gt;ERROR: Write Access Violation REG&lt;BR /&gt;Exception occurred at (01FCA0AA)&lt;BR /&gt;Task Traceback&lt;BR /&gt;Address Frame (DBGHELP API Version 4.0 rev 5)&lt;BR /&gt;0000000001FCA0AA 0000000023E68820 tkmk:tkBoot+0x1836A&lt;BR /&gt;0000000001FC8480 0000000023E68870 tkmk:tkBoot+0x16740&lt;BR /&gt;000000000377A101 0000000023E68878 sashost:Main+0x325E1&lt;BR /&gt;0000000006ED3B44 0000000023E688B8 sasods:tkvercn1+0x62B04&lt;BR /&gt;000000002509D33A 0000000023E6AB48 sasreg:tkvercn1+0x11C2FA&lt;BR /&gt;0000000024FF7295 0000000023E6F330 sasreg:tkvercn1+0x76255&lt;BR /&gt;0000000024F92CE1 0000000023E6F620 sasreg:tkvercn1+0x11CA1&lt;BR /&gt;0000000024F90C67 0000000023E6F6E0 sasreg:tkvercn1+0xFC27&lt;BR /&gt;0000000024F81E02 0000000023E6F770 sasreg:tkvercn1+0xDC2&lt;BR /&gt;00000000051FC5E7 0000000023E6F778 sasxshel:tkvercn1+0x4B5A7&lt;BR /&gt;000000002509D0E2 0000000023E6F890 sasreg:tkvercn1+0x11C0A2&lt;BR /&gt;0000000024F816F9 0000000023E6FBF0 sasreg:tkvercn1+0x6B9&lt;BR /&gt;00000000037589DB 0000000023E6FF20 sashost:Main+0x10EBB&lt;BR /&gt;000000000375E62D 0000000023E6FF50 sashost:Main+0x16B0D&lt;BR /&gt;0000000076B959CD 0000000023E6FF58 kernel32:BaseThreadInitThunk+0xD&lt;BR /&gt;0000000076DCA561 0000000023E6FF88 ntdll:RtlUserThreadStart+0x21&lt;/P&gt;
&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.LINFLUX_FIT20 may be incomplete. When this step was stopped there &lt;BR /&gt; were 7026 observations and 10 variables.&lt;BR /&gt;WARNING: The data set WORK.LINFLUX_PARAM20 may be incomplete. When this step was stopped there &lt;BR /&gt; were 4684 observations and 10 variables.&lt;BR /&gt;WARNING: The data set WORK.MODEL_CO220 may be incomplete. When this step was stopped there were &lt;BR /&gt; 2342 observations and 9 variables.&lt;BR /&gt;NOTE: PROCEDURE REG used (Total process time):&lt;BR /&gt; real time 1:40:32.08&lt;BR /&gt; cpu time 42:28.21&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how do I fix this??&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 07:47:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402635#M97804</guid>
      <dc:creator>ninemileshigh</dc:creator>
      <dc:date>2017-10-10T07:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402638#M97807</link>
      <description>&lt;P&gt;It looks to me like some sort of memory overflow - could you reduce the amount of data you're passing through? If that doesn't fix it or you can't do it then I think you'll have to raise a track with SAS Support which you can do here&amp;nbsp;&lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 08:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402638#M97807</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-10-10T08:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402685#M97817</link>
      <description>&lt;P&gt;Try to use BY statement of PROC REG .&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 11:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402685#M97817</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-10-10T11:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402687#M97819</link>
      <description>&lt;P&gt;thanks. I've put an extra loop into my macro so that it executes the proc reg in smaller chunks of data, to see if that will work&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 11:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402687#M97819</guid>
      <dc:creator>ninemileshigh</dc:creator>
      <dc:date>2017-10-10T11:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402690#M97820</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 11:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402690#M97820</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-10-10T11:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402733#M97824</link>
      <description>&lt;P&gt;You should&amp;nbsp;"contact technical support and provide them with the following traceback information" in addition to your SAS version, operating system, and&amp;nbsp;program.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;AS KSharp said, you probably want to use BY-group processing for this problem, rather than a macro loop. And make sure that you use ODS GRAPHICS OFF. Also &lt;A href="https://blogs.sas.com/content/iml/2013/05/24/turn-off-ods-for-simulations.html" target="_self"&gt;use NOPRINT or ODS EXCLUDE ALL to suppress the SAS output.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402733#M97824</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-10-10T13:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402737#M97828</link>
      <description>&lt;P&gt;thanks for the link, it will come in useful for future. I think I've worked around the problem by analysing smaller chunks of data for now.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402737#M97828</guid>
      <dc:creator>ninemileshigh</dc:creator>
      <dc:date>2017-10-10T13:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402738#M97829</link>
      <description>&lt;P&gt;Please post your SAS program. We might be able to offer a more efficient solution.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402738#M97829</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-10-10T13:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402740#M97831</link>
      <description>&lt;P&gt;thanks, I'll send that through. I have managed a temporary fix by analysing smaller chunks of data.. (a lazy way out, I know). I can't use noprint as I need the ods tables output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402740#M97831</guid>
      <dc:creator>ninemileshigh</dc:creator>
      <dc:date>2017-10-10T13:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402742#M97833</link>
      <description>&lt;P&gt;here's the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/****************************************************************&lt;BR /&gt;* NOW CODE A MACRO TO REGRESS CO2 FOR 60 SECOND LINEAR FIT WITH *&lt;BR /&gt;* A MOVING STARTING TIME EVERY 15 SECONDS *&lt;BR /&gt;****************************************************************/&lt;/P&gt;
&lt;P&gt;/* DIVERT LOG TO A FILE FOR THE BATCH PROCESSING- ELSE IT HALTS THE PROGRAMME WHEN IT GETS FULL */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc printto new log="&amp;amp;OUTFOLDER.\CRICHTONLINEARlog.LOG" print="&amp;amp;OUTFOLDER.\CRICHTONLINEAR.LOG";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%MACRO WINDOWS;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; %DO h= 01 %TO 21;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %DO i= 20 %TO 170 %BY 15;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA START&amp;amp;h._&amp;amp;i.;&lt;BR /&gt; SET DATASET.ONE;&lt;BR /&gt; IF ETIM &amp;lt; &amp;amp;i. THEN DELETE;&lt;BR /&gt; IF ETIM &amp;gt; &amp;amp;i. + 60 THEN DELETE;&lt;BR /&gt; IF LICORFILECODE NE &amp;amp;h. THEN DELETE;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC REG DATA= START&amp;amp;h._&amp;amp;i. OUTEST= MODEL_CO2&amp;amp;h._&amp;amp;i. ;&lt;BR /&gt; MODEL CO2_uMOL= ETIM;&lt;BR /&gt; ODS OUTPUT PARAMETERESTIMATES= LINFLUX_PARAM&amp;amp;h._&amp;amp;i. FITSTATISTICS= LINFLUX_FIT&amp;amp;h._&amp;amp;i.;&lt;BR /&gt; BY LICORFILE OBS;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DATA FLUX_CO2&amp;amp;h._&amp;amp;i.;&lt;BR /&gt; SET MODEL_CO2&amp;amp;h._&amp;amp;i.;&lt;BR /&gt; LINFLUX= ETIM/ 0.12;&lt;BR /&gt; DEADBAND= &amp;amp;i.;&lt;BR /&gt; PROC PRINT;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;DATA LINFLUX_FIT2_&amp;amp;h._&amp;amp;i.; &lt;BR /&gt; SET LINFLUX_FIT&amp;amp;h._&amp;amp;i. (RENAME=(cValue2= LINFLUX_R2));&lt;BR /&gt; IF Label1 ^= 'Dependent Mean' THEN DELETE;&lt;BR /&gt; DEADBAND= &amp;amp;i.;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA LINFLUX_CV&amp;amp;h._&amp;amp;i.;&lt;BR /&gt; SET LINFLUX_FIT&amp;amp;h._&amp;amp;i. (RENAME=(cValue1= LINFLUX_CV));&lt;BR /&gt; IF MISSING(Label2)= 0 THEN DELETE;&lt;BR /&gt; DEADBAND= &amp;amp;i.;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA LINFLUX_PARAMS&amp;amp;h._&amp;amp;i.;&lt;BR /&gt; SET LINFLUX_PARAM&amp;amp;h._&amp;amp;i. (RENAME=(tValue= LINFLUX_T Probt= LINFLUX_P));&lt;BR /&gt; IF Variable = 'Intercept' THEN DELETE;&lt;BR /&gt; DEADBAND= &amp;amp;i.;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DATA LINEARFIT&amp;amp;h._&amp;amp;i.;&lt;BR /&gt; MERGE FLUX_CO2&amp;amp;h._&amp;amp;i. LINFLUX_FIT2_&amp;amp;h._&amp;amp;i. LINFLUX_CV&amp;amp;h._&amp;amp;i. LINFLUX_PARAMS&amp;amp;h._&amp;amp;i.;&lt;BR /&gt; DROP _MODEL_&lt;BR /&gt; _TYPE_&lt;BR /&gt; _DEPVAR_&lt;BR /&gt; _RMSE_&lt;BR /&gt; INTERCEPT&lt;BR /&gt; ETIM&lt;BR /&gt; CO2_uMOL&lt;BR /&gt; MODEL&lt;BR /&gt; DEPENDENT&lt;BR /&gt; LABEL1&lt;BR /&gt; CVALUE1&lt;BR /&gt; CVALUE2&lt;BR /&gt; NVALUE1&lt;BR /&gt; LABEL2&lt;BR /&gt; NVALUE2&lt;BR /&gt; VARIABLE&lt;BR /&gt; DF&lt;BR /&gt; ESTIMATE&lt;BR /&gt; STDERR;&lt;BR /&gt; BY LICORFILE OBS;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DATA DATASET.LINEARFIT&amp;amp;h._&amp;amp;i.;&lt;BR /&gt; SET LINEARFIT&amp;amp;h._&amp;amp;i.;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %END;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; %END;&lt;BR /&gt;%MEND WINDOWS;&lt;BR /&gt;%WINDOWS;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA ALL_LINEARFIT;&lt;BR /&gt; SET DATASET.LINEARFIT:;&lt;BR /&gt; BY LICORFILE OBS;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA DATASET.ALL_LINEARFIT;&lt;BR /&gt; SET ALL_LINEARFIT;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402742#M97833</guid>
      <dc:creator>ninemileshigh</dc:creator>
      <dc:date>2017-10-10T13:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402743#M97834</link>
      <description>&lt;P&gt;But you can still use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS EXCLUDE ALL;&lt;/P&gt;
&lt;P&gt;proc reg;&lt;/P&gt;
&lt;P&gt;..&lt;/P&gt;
&lt;P&gt;ODS OUTPUT &lt;EM&gt;TableName=DataSetName&lt;/EM&gt;;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;ODS EXCLUDE NONE;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to suppress output to the open ODS destinations (eg, HTML or LISTING)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402743#M97834</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-10-10T13:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402744#M97835</link>
      <description>I am doing many regressions of LINFLUX against the same variable (ETIM), which is timeseries data, but moving the time window that the model starts for each observation, hence the loops</description>
      <pubDate>Tue, 10 Oct 2017 13:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402744#M97835</guid>
      <dc:creator>ninemileshigh</dc:creator>
      <dc:date>2017-10-10T13:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402745#M97836</link>
      <description>thanks, I didn't know that</description>
      <pubDate>Tue, 10 Oct 2017 13:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-error/m-p/402745#M97836</guid>
      <dc:creator>ninemileshigh</dc:creator>
      <dc:date>2017-10-10T13:32:53Z</dc:date>
    </item>
  </channel>
</rss>

