<?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: Win 7 9.4M4 &amp;quot;sas.exe has stopped working&amp;quot; at startup in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/409914#M100189</link>
    <description>&lt;P&gt;Do have an autoexec.sas that does anything more interesting than setting libraries or such? Maybe something in there is running into a problem.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2017 16:31:14 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-11-02T16:31:14Z</dc:date>
    <item>
      <title>Win 7 9.4M4 "sas.exe has stopped working" at startup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/409471#M100042</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm having an intermittent error where when I launch a new session of SAS 9.4M4 on a Win 7 PC, I get the error "sas.exe has stopped working."&amp;nbsp; It happens on occasion (&amp;lt;5% of the time, I'd say), both when starting an interactive session and when starting a batch session.&amp;nbsp;I haven't been able to reproduce it reliably, and haven't been able to get a log file from it. When it happens, if I immediately repeat the command (i.e. either double click the SAS icon to start DM SAS session, or resubmit the batch job), it runs fine.&amp;nbsp; So it has the feel of a file locking problem (like an anti-virus scan locking some file that SAS wants to read, or some file backup process locking a file).&amp;nbsp; The only time I get this error is during startup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect I'll have to contact tech support, but thought I'd throw it out to the group first to see if it sounded familiar.&amp;nbsp; And if anyone has hints for SAS or Windows logs I should look for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's possible that it started happening recently when I installed 64-bit 9.4M4 on a PC that previously had 9.4M3 and 9.3.&amp;nbsp; But honestly, I haven't been using DM SAS much in the past year, so that could be a red herring (i.e. false lead).&amp;nbsp;&amp;nbsp;&amp;nbsp; I have also seen the error when starting 9.3 on the same PC.&amp;nbsp; Since it happens when starting both an interactive session and a batch session, it seems like it is not the error reported in &lt;A href="http://support.sas.com/kb/54/246.html" target="_blank"&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;Thanks,&lt;/P&gt;
&lt;P&gt;--Q.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASstoppedWorking.PNG" style="width: 448px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16367i62C0CB200764E9AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="SASstoppedWorking.PNG" alt="SASstoppedWorking.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 14:18:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/409471#M100042</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-11-01T14:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Win 7 9.4M4 "sas.exe has stopped working" at startup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/409820#M100148</link>
      <description>&lt;PRE&gt;
Quentin,
I don't know if the following could solve your problem. 
But deserve a try.

Right click sas icon and select Run As Administrator  .

&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:00:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/409820#M100148</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-11-02T14:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Win 7 9.4M4 "sas.exe has stopped working" at startup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/409914#M100189</link>
      <description>&lt;P&gt;Do have an autoexec.sas that does anything more interesting than setting libraries or such? Maybe something in there is running into a problem.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 16:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/409914#M100189</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-02T16:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Win 7 9.4M4 "sas.exe has stopped working" at startup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/410048#M100215</link>
      <description>&lt;P&gt;No, no autoexec.&amp;nbsp; My config file does point sasautos toward a directory on a network share.&amp;nbsp; It's possible those files are being backed up or virus scanned. But I wouldn't think that would crash SAS.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 01:12:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/410048#M100215</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-11-03T01:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Win 7 9.4M4 "sas.exe has stopped working" at startup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/410439#M100276</link>
      <description>&lt;P&gt;I put in a ticket to tech support, will follow-up with any useful resolution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today I wrote a little macro that uses SYSTASK to spawn &amp;amp;n SAS batch jobs in series, where each batch job is a trivial SAS program.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro spawn(n);
%local i mystatus;

%do i=1 %to &amp;amp;n;
  systask command """%sysget(SASROOT)\sas.exe"" -noterminal
                  -sysin ""Q:\Junk\SASbug\sample.sas""
                  -log   ""Q:\Junk\SASbug\sample_%now(datetime=1,format=b8601dt15).log""
                  -sysparm ""blah""
                  "
                  status=mystatus wait
                  ;
                  
  %put Loop &amp;amp;i ;
  %put &amp;gt;&amp;gt;&amp;amp;sysrc&amp;lt;&amp;lt;;
  %put &amp;gt;&amp;gt;&amp;amp;mystatus&amp;lt;&amp;lt;;
  %if NOT (&amp;amp;sysrc=0 and &amp;amp;mystatus=0) %then %put ER%str()ROR: (%nrstr(%%)&amp;amp;sysmacroname) ;

  %let mystatus=;

  data _null_;
    y=sleep(1);
  run;
%end;

%mend spawn;

%spawn(5)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran it 500 times, and got the error twice (on consecutive runs, interestingly).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When it errored, the status returned by systask was -1073741819.&amp;nbsp; I googled a bit, apparently it's a fairly generic Windows error code.&amp;nbsp; I'm running Windows 7, I found a few hits from google but nothing too exciting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Q:\ drive where I have the code stored is a network drive, I'm going to try running it a few more times there and see if I can get the problem again, and also try running the same test from a local drive.&amp;nbsp; I suppose it's possible that it's a networking hiccup.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 19:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/410439#M100276</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-11-03T19:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Win 7 9.4M4 "sas.exe has stopped working" at startup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/410449#M100278</link>
      <description>&lt;P&gt;I checked the Windows logs in the Event Viewer.&amp;nbsp; When SAS fails to start, it does log an error there:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Faulting application name: sas.exe, version: 9404.0.22563.55383, time stamp: 0x5823d872&lt;BR /&gt;Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000&lt;BR /&gt;Exception code: 0xc0000005&lt;BR /&gt;Fault offset: 0x0000000000000000&lt;BR /&gt;Faulting process id: 0x1a2c&lt;BR /&gt;Faulting application start time: 0x01d354e02d99d0a1&lt;BR /&gt;Faulting application path: C:\Program Files\SASHome2\SASFoundation\9.4\sas.exe&lt;BR /&gt;Faulting module path: unknown&lt;BR /&gt;Report Id: 6b8b6451-c0d3-11e7-8301-30e171976bdf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, the exception code seems fairly generic.&amp;nbsp; I'm going to try running it repeatedly on a local drive and the network drive.&amp;nbsp; If it only happens on the network drive, I'll probably ascribe it to an annoying virus scan or backup.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 20:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Win-7-9-4M4-quot-sas-exe-has-stopped-working-quot-at-startup/m-p/410449#M100278</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-11-03T20:25:50Z</dc:date>
    </item>
  </channel>
</rss>

