<?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: Keep a connected SAS instance running in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69802#M20085</link>
    <description>Hi&lt;BR /&gt;
I would contact the person who is responsible for the SAS installation in your organisation.&lt;BR /&gt;
&lt;BR /&gt;
It's often a problem that a user's SAS EG session (yours for example) stays alive for days eventually locking datasets which have to get updated overnight. &lt;BR /&gt;
&lt;BR /&gt;
There must be some customised process implemented on the mainframe side which terminates EG sessions which are not active for more than 30 minutes. May be you can convince the person responsible to increase this time (at least during working hours).&lt;BR /&gt;
&lt;BR /&gt;
Is your problem only convenience (you have to re-connect) or is it that long running jobs get canceled? If the latter is the case then you sure have a good reason to ask for a change of how and when idle sessions are killed.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
    <pubDate>Sat, 17 Jan 2009 13:18:05 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2009-01-17T13:18:05Z</dc:date>
    <item>
      <title>Keep a connected SAS instance running</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69801#M20084</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Run SAS on mainframe but get disconnected automatically if a program hasn't been submitted for the last 30 minutes. Would like to find a way to always stay connected. Something like a small script that could determine whether a SAS program is running now, if not run some arbitrary code in order to be connected.</description>
      <pubDate>Sat, 17 Jan 2009 11:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69801#M20084</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-01-17T11:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Keep a connected SAS instance running</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69802#M20085</link>
      <description>Hi&lt;BR /&gt;
I would contact the person who is responsible for the SAS installation in your organisation.&lt;BR /&gt;
&lt;BR /&gt;
It's often a problem that a user's SAS EG session (yours for example) stays alive for days eventually locking datasets which have to get updated overnight. &lt;BR /&gt;
&lt;BR /&gt;
There must be some customised process implemented on the mainframe side which terminates EG sessions which are not active for more than 30 minutes. May be you can convince the person responsible to increase this time (at least during working hours).&lt;BR /&gt;
&lt;BR /&gt;
Is your problem only convenience (you have to re-connect) or is it that long running jobs get canceled? If the latter is the case then you sure have a good reason to ask for a change of how and when idle sessions are killed.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Sat, 17 Jan 2009 13:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69802#M20085</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-01-17T13:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Keep a connected SAS instance running</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69803#M20086</link>
      <description>Thanks Patrick,&lt;BR /&gt;
&lt;BR /&gt;
Sure, contacting responsible IT staff would be great if they weren't slow to changes. For me, it is just a matter of convenience, not have to re-run big tasks. Isn't there a function that could found out if SAS is currently processing a script? If there is, it would be nice to have this small script run every half an hour.</description>
      <pubDate>Sat, 17 Jan 2009 16:36:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69803#M20086</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-01-17T16:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Keep a connected SAS instance running</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69804#M20087</link>
      <description>Hi &lt;BR /&gt;
&lt;BR /&gt;
I think you have very valid reasons to request for a change in how and when idle EG sessions are terminated.&lt;BR /&gt;
&lt;BR /&gt;
I can't think of a solution which you as a user could implement to "trick the system".&lt;BR /&gt;
&lt;BR /&gt;
A workaround could be: Whenever you leave your workstation for more than 30 minutes you start the following task in EG - and you stop the task when you come back.&lt;BR /&gt;
As I understand what's going on this should keep your session alive because you keep the workspace server busy.&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  do i=1 to 16;&lt;BR /&gt;
    rc=sleep(1,1700);&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Sun, 18 Jan 2009 01:24:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69804#M20087</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-01-18T01:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Keep a connected SAS instance running</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69805#M20088</link>
      <description>Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Sleep function will be very helpful, but there's a problem in processing more than one program in the same session. I want the sleep script to behave like a daemon process, executing only when nothing else is executing.</description>
      <pubDate>Sun, 18 Jan 2009 11:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69805#M20088</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-01-18T11:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Keep a connected SAS instance running</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69806#M20089</link>
      <description>I think it would be very hard to develop what you ask for - and even if possible you would most likely not have the appropriate priviledges to implement it.&lt;BR /&gt;
&lt;BR /&gt;
An approach could be to develop a add-in for EG which does what you want (check for started task every x minutes - and if there's non run a tiny little program on the server).&lt;BR /&gt;
&lt;BR /&gt;
I know that the work-around I proposed is not very handy - but it's right now the best I can come up with.&lt;BR /&gt;
&lt;BR /&gt;
I think that you have to request a change from your IT department and explain them what it means for you to loose every 30 minutes the connection (and therefore all your work datasets and results).&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Mon, 19 Jan 2009 06:48:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69806#M20089</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-01-19T06:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Keep a connected SAS instance running</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69807#M20090</link>
      <description>Yes, you're right. I'll use a sleep script and instead focus on my work &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Mon, 19 Jan 2009 18:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-a-connected-SAS-instance-running/m-p/69807#M20090</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-01-19T18:52:39Z</dc:date>
    </item>
  </channel>
</rss>

