<?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: &amp;quot;An error occurred executing the workspace job - The server is disconnected.&amp;quot; in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-An-error-occurred-executing-the-workspace-job-The-server-is/m-p/529718#M32905</link>
    <description>&lt;P&gt;Have you checked if your code or any global option that Abends the session in case of an error ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=errorabend;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;By default the log should reflect this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOERRORABEND Do not abend on error conditions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this is not true then try this option and re-run your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options noerrorabend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Your email syntax appears to be fine, perhaps you may need to work with your IT to ensure the SMTP ports are enabled on the Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 15:44:36 GMT</pubDate>
    <dc:creator>r_behata</dc:creator>
    <dc:date>2019-01-24T15:44:36Z</dc:date>
    <item>
      <title>"An error occurred executing the workspace job - The server is disconnected."</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-An-error-occurred-executing-the-workspace-job-The-server-is/m-p/529699#M32904</link>
      <description>&lt;P&gt;&lt;BR /&gt;I'm getting an error when trying to send an email through the program editor. I am using SAS EG 7.12, connected to the local server.&amp;nbsp; My error says "An error occurred executing the workspace job - The server is disconnected." Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename MYEMAIL email "luke.kading@business.com"
 subject="Paper Data Entry Sheets Dates" 
 from= "luke.kading@business.com"
 to="luke.kading@business.com"
;

data _null_;
 file MYEMAIL;
 put "Here are the last updated dates for the paper files:";
 put "Consumer: &amp;amp;consumer_last_updated.";

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My program is reading in six different Excel files via proc import.&amp;nbsp; Then, I am checking the dates of those files and comparing them to what I am expecting the date to be, to ensure the people responsible for entering the Excel sheets actually did their job without having to go into each file to look.&amp;nbsp; Then, if any date is not what I'm expecting, I want my program to email me and inform me of the different dates (which are macro values) and abort the rest of the program. This program runs entirely on the local server within SAS EG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything works great, except for the email portion.&amp;nbsp; When I run that email syntax after all the steps I just mentioned, I get the error I mentioned above.&amp;nbsp; However, if I were to run that syntax all by itself without importing my files first, it works fine (other than asking for me to allow the email, but I think that's a security thing I can fix with our IT).&amp;nbsp; After doing some research, I'm thinking it has to do with either my work library and/or my log getting too full after those six imports, and that's why it fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on what I can do to fix this?&amp;nbsp; I've tried clearing out my work library and log before running the email step, but it still doesn't work.&amp;nbsp; If I can get this to work like I am intending, it can turn a slightly manual process to be fully automated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 14:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-An-error-occurred-executing-the-workspace-job-The-server-is/m-p/529699#M32904</guid>
      <dc:creator>luke_kading</dc:creator>
      <dc:date>2019-01-24T14:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: "An error occurred executing the workspace job - The server is disconnected."</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-An-error-occurred-executing-the-workspace-job-The-server-is/m-p/529718#M32905</link>
      <description>&lt;P&gt;Have you checked if your code or any global option that Abends the session in case of an error ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=errorabend;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;By default the log should reflect this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOERRORABEND Do not abend on error conditions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this is not true then try this option and re-run your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options noerrorabend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Your email syntax appears to be fine, perhaps you may need to work with your IT to ensure the SMTP ports are enabled on the Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 15:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-An-error-occurred-executing-the-workspace-job-The-server-is/m-p/529718#M32905</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-01-24T15:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: "An error occurred executing the workspace job - The server is disconnected."</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-An-error-occurred-executing-the-workspace-job-The-server-is/m-p/529781#M32906</link>
      <description>&lt;P&gt;Thanks for the suggestion.&amp;nbsp; I tried the "options noerrabend;" statement and it didn't seem to help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think this in an IT issue, because when I run the syntax alone without importing my Excel files, it works.&amp;nbsp; Also, if I run it after I get the error message of disconnecting from the server, it works then as well.&amp;nbsp; It just doesn't recognize my macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:53:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-An-error-occurred-executing-the-workspace-job-The-server-is/m-p/529781#M32906</guid>
      <dc:creator>luke_kading</dc:creator>
      <dc:date>2019-01-24T17:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: "An error occurred executing the workspace job - The server is disconnected."</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-An-error-occurred-executing-the-workspace-job-The-server-is/m-p/530199#M32916</link>
      <description>&lt;P&gt;So you confirmed your errorabend option is set to NOERRORABEND (example log output below) and you still see the same "the server is disconnected" problem?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;24 proc options option=errorabend;&lt;BR /&gt;25 run;&lt;/P&gt;
&lt;P&gt;SAS (r) Proprietary Software Release 9.4 TS1M5&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;NOERRORABEND&lt;/FONT&gt; Does not end SAS for most errors, issues an error message, sets OBS=0, and goes into syntax check mode.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 25 Jan 2019 20:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-An-error-occurred-executing-the-workspace-job-The-server-is/m-p/530199#M32916</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2019-01-25T20:19:55Z</dc:date>
    </item>
  </channel>
</rss>

