<?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 Bizarre Issue: SAS session closes itself in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734139#M228740</link>
    <description>&lt;P&gt;Yesterday, my programs ran fine.&amp;nbsp; I've been running them thousands of times for months.&amp;nbsp; Today, after upgrading Office from 2010 to 2019, the most bizarre behavior has started.&amp;nbsp; It seems to be in the PROC APPEND.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes it will run once, then, when I run it again, the SAS session just closes.&amp;nbsp; The program just blows up and disappears.&amp;nbsp; It is bizarre.&amp;nbsp; Here is the log on the first run.&amp;nbsp; The Excel file does not exist so it creates it.&amp;nbsp; Those two lines that say INFO appear to be new.&amp;nbsp; I have not noticed these before.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Appending WORK.MFPRESULTS to WRKBK.raw.
NOTE: BASE data set does not exist. DATA file is being copied to BASE file.
NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
INFO: Data set block I/O cannot be used because:
INFO:   -  The data sets use different engines, have different variables or have attributes that may differ.
NOTE: There were 1 observations read from the data set WORK.MFPRESULTS.
NOTE: The data set WRKBK.raw has 1 observations and 32 variables.
NOTE: PROCEDURE APPEND used (Total process time):
      real time           0.13 seconds
      cpu time            0.09 seconds

MPRINT(G200_COST_SENSITIVITY):   LIBNAME WrkBk CLEAR;
NOTE: Libref WRKBK has been deassigned.
9207
9208   data _null_;
9209      call sound(500,200);
9210      call sound(2000,400);
9211      call sound(500,200);
9212   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here are the subsequent runs (Ignore the warnings on the variable lengths):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Appending WORK.MFPRESULTS to WRKBK.raw.
WARNING: Variable mixed has different lengths on BASE and DATA files (BASE 255 DATA 3).
WARNING: Variable alt has different lengths on BASE and DATA files (BASE 255 DATA 3).
WARNING: Variable us1 has different lengths on BASE and DATA files (BASE 255 DATA 20).
WARNING: Variable hm1 has different lengths on BASE and DATA files (BASE 255 DATA 20).
WARNING: Variable cp1 has different lengths on BASE and DATA files (BASE 255 DATA 20).
WARNING: Variable VARNAME has different lengths on BASE and DATA files (BASE 255 DATA 7).
WARNING: Variable today has different lengths on BASE and DATA files (BASE 255 DATA 18).
NOTE: There were 1 observations read from the data set WORK.MFPRESULTS.
NOTE: 1 observations added.
NOTE: The data set WRKBK.raw has . observations and 32 variables.
NOTE: PROCEDURE APPEND used (Total process time):
      real time           0.20 seconds
      cpu time            0.09 seconds

MPRINT(G200_COST_SENSITIVITY):   LIBNAME WrkBk CLEAR;
NOTE: Libref WRKBK has been deassigned.
9207
9208   data _null_;
9209      call sound(500,200);
9210      call sound(2000,400);
9211      call sound(500,200);
9212   run;

NOTE: DATA statement used (Total process time):
      real time           1.64 seconds
      cpu time            0.01 seconds

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When it blows up, it actually writes the line to the Excel spreadsheet.&amp;nbsp; The log stops after printing the CPU time.&amp;nbsp; it pauses for about 20 seconds. then the window closes: poof!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the log never generates the clearing the LIBNAME step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 08:16:29 GMT</pubDate>
    <dc:creator>texasmfp</dc:creator>
    <dc:date>2021-04-15T08:16:29Z</dc:date>
    <item>
      <title>Bizarre Issue: SAS session closes itself</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734139#M228740</link>
      <description>&lt;P&gt;Yesterday, my programs ran fine.&amp;nbsp; I've been running them thousands of times for months.&amp;nbsp; Today, after upgrading Office from 2010 to 2019, the most bizarre behavior has started.&amp;nbsp; It seems to be in the PROC APPEND.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes it will run once, then, when I run it again, the SAS session just closes.&amp;nbsp; The program just blows up and disappears.&amp;nbsp; It is bizarre.&amp;nbsp; Here is the log on the first run.&amp;nbsp; The Excel file does not exist so it creates it.&amp;nbsp; Those two lines that say INFO appear to be new.&amp;nbsp; I have not noticed these before.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Appending WORK.MFPRESULTS to WRKBK.raw.
NOTE: BASE data set does not exist. DATA file is being copied to BASE file.
NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
INFO: Data set block I/O cannot be used because:
INFO:   -  The data sets use different engines, have different variables or have attributes that may differ.
NOTE: There were 1 observations read from the data set WORK.MFPRESULTS.
NOTE: The data set WRKBK.raw has 1 observations and 32 variables.
NOTE: PROCEDURE APPEND used (Total process time):
      real time           0.13 seconds
      cpu time            0.09 seconds

MPRINT(G200_COST_SENSITIVITY):   LIBNAME WrkBk CLEAR;
NOTE: Libref WRKBK has been deassigned.
9207
9208   data _null_;
9209      call sound(500,200);
9210      call sound(2000,400);
9211      call sound(500,200);
9212   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here are the subsequent runs (Ignore the warnings on the variable lengths):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Appending WORK.MFPRESULTS to WRKBK.raw.
WARNING: Variable mixed has different lengths on BASE and DATA files (BASE 255 DATA 3).
WARNING: Variable alt has different lengths on BASE and DATA files (BASE 255 DATA 3).
WARNING: Variable us1 has different lengths on BASE and DATA files (BASE 255 DATA 20).
WARNING: Variable hm1 has different lengths on BASE and DATA files (BASE 255 DATA 20).
WARNING: Variable cp1 has different lengths on BASE and DATA files (BASE 255 DATA 20).
WARNING: Variable VARNAME has different lengths on BASE and DATA files (BASE 255 DATA 7).
WARNING: Variable today has different lengths on BASE and DATA files (BASE 255 DATA 18).
NOTE: There were 1 observations read from the data set WORK.MFPRESULTS.
NOTE: 1 observations added.
NOTE: The data set WRKBK.raw has . observations and 32 variables.
NOTE: PROCEDURE APPEND used (Total process time):
      real time           0.20 seconds
      cpu time            0.09 seconds

MPRINT(G200_COST_SENSITIVITY):   LIBNAME WrkBk CLEAR;
NOTE: Libref WRKBK has been deassigned.
9207
9208   data _null_;
9209      call sound(500,200);
9210      call sound(2000,400);
9211      call sound(500,200);
9212   run;

NOTE: DATA statement used (Total process time):
      real time           1.64 seconds
      cpu time            0.01 seconds

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When it blows up, it actually writes the line to the Excel spreadsheet.&amp;nbsp; The log stops after printing the CPU time.&amp;nbsp; it pauses for about 20 seconds. then the window closes: poof!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the log never generates the clearing the LIBNAME step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 08:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734139#M228740</guid>
      <dc:creator>texasmfp</dc:creator>
      <dc:date>2021-04-15T08:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre Issue: SAS session closes itself</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734142#M228742</link>
      <description>&lt;P&gt;You say "Excel". Which engine do you use in the LIBNAME statement?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 08:24:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734142#M228742</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-15T08:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre Issue: SAS session closes itself</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734143#M228743</link>
      <description>&lt;P&gt;Kurt:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the statement.&amp;nbsp; It is the last statement in a called Macro file.&amp;nbsp; When the Macro ends, the program that called it ends.&amp;nbsp; Its worked thousands of times before switching to 2019:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME WrkBk EXCEL "&amp;amp;ROOT\&amp;amp;RESPONDENT._&amp;amp;SEGMENT._&amp;amp;STAGE._additional analysis.xlsx" SCAN_TEXT=NO;
PROC APPEND force BASE=WrkBk.raw
DATA=mfpresults;
RUN;
LIBNAME WrkBk CLEAR;&lt;BR /&gt;&lt;BR /&gt;%MEND G200_cost_sensitivity;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Apr 2021 08:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734143#M228743</guid>
      <dc:creator>texasmfp</dc:creator>
      <dc:date>2021-04-15T08:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre Issue: SAS session closes itself</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734144#M228744</link>
      <description>&lt;P&gt;So you are dependent on the Microsoft-supplied engine, which has changed with the "upgrade".&lt;/P&gt;
&lt;P&gt;Bring this to the attention of SAS technical support, maybe they can do something about it.&lt;/P&gt;
&lt;P&gt;Is your SAS current (at least 9.4M6)? The issue may have been fixed in a recent maintenance level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TBH, I would never do such a thing. I'd keep my complete data in SAS and only do exports to Excel in a final step, dataset-wise, for the poor people who need data in that format.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 08:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734144#M228744</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-15T08:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre Issue: SAS session closes itself</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734146#M228745</link>
      <description>&lt;P&gt;Yes, 9.4 TS1M6.&amp;nbsp; I will call SAS Tech support.&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 09:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734146#M228745</guid>
      <dc:creator>texasmfp</dc:creator>
      <dc:date>2021-04-15T09:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre Issue: SAS session closes itself</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734148#M228746</link>
      <description>&lt;P&gt;Kurt, FYI, the PROC Export in a prior step works just as it did before.&amp;nbsp; Its only the PROC APPEND that is the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 09:03:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734148#M228746</guid>
      <dc:creator>texasmfp</dc:creator>
      <dc:date>2021-04-15T09:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre Issue: SAS session closes itself</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734149#M228747</link>
      <description>&lt;P&gt;It has to do with the "update" access mode, which is usually not available with such file formats (APPEND is not possible with the XLSX engine, for instance).&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 09:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bizarre-Issue-SAS-session-closes-itself/m-p/734149#M228747</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-15T09:04:37Z</dc:date>
    </item>
  </channel>
</rss>

