<?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: What is the benefit of having several cas sessions running? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-benefit-of-having-several-cas-sessions-running/m-p/961636#M374888</link>
    <description>&lt;P&gt;I'm wondering why your log says the timeout value is in minutes!? If it were in seconds as per docu&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_060/casref/p083riokarkjnsn1xt1e16t20f6t.htm" target="_self"&gt;TIMEOUT= Session Option&lt;/A&gt; then you just walking away at the end of the day shouldn't cause such issues.&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;Timeout:       1800 minutes&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;May-be worth looking a bit closer into the cause for this being minutes together with your SAS Admin and/or SAS Tech Support.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Mar 2025 06:44:32 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2025-03-12T06:44:32Z</dc:date>
    <item>
      <title>What is the benefit of having several cas sessions running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-benefit-of-having-several-cas-sessions-running/m-p/961591#M374868</link>
      <description>&lt;P&gt;I haven't cared so far about this issue. I use cas actions and cas programming all over.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I wonder why I have 6 sessions running.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An what is the use case for having several active sessions?&lt;/P&gt;
&lt;P&gt;I suppose that if I do not manage the sessions actively I'll face sooner or later performance issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I'm starting my day I run:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Init CAS library; */
cas mySession sessopts=(caslib=casuser timeout=1800 locale="en_US");
caslib _all_ assign;
cas mySession sessopts=(caslib="casuser");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I do not close sessions. I turn off my laptop and that's it.&lt;/P&gt;
&lt;P&gt;I think that's bad practice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know what I'm missing out not understanding and dealing properly with the sessions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;80   proc cas;
81      session mySession;
82      session.sessionStatus result=res;    /* 2 */
83   
84      print "Session status:";             /* 3 */
85      print "   State:         " res["state"];
86      print "   Connections:   " res["number of Connections"];
87      print "   Timeout:       " res["Timeout"] "minutes";
88      print "   Action Status: " res["ActionStatus"];
89      print "   Authenticated: " res["Authenticated"];
90      print "   Locale:        " res["locale"];
91   run;
NOTE: Active Session now mySession.
Session status:
   State:         Connected
   Connections:   6
   Timeout:       1800 minutes
   Action Status: Action is active
   Authenticated: Yes
   Locale:        en_US
92   quit;
NOTE: PROCEDURE CAS used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 17:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-benefit-of-having-several-cas-sessions-running/m-p/961591#M374868</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2025-03-11T17:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: What is the benefit of having several cas sessions running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-benefit-of-having-several-cas-sessions-running/m-p/961636#M374888</link>
      <description>&lt;P&gt;I'm wondering why your log says the timeout value is in minutes!? If it were in seconds as per docu&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_060/casref/p083riokarkjnsn1xt1e16t20f6t.htm" target="_self"&gt;TIMEOUT= Session Option&lt;/A&gt; then you just walking away at the end of the day shouldn't cause such issues.&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;Timeout:       1800 minutes&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;May-be worth looking a bit closer into the cause for this being minutes together with your SAS Admin and/or SAS Tech Support.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 06:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-benefit-of-having-several-cas-sessions-running/m-p/961636#M374888</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2025-03-12T06:44:32Z</dc:date>
    </item>
  </channel>
</rss>

