<?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: Cleanup CASUSER tables in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827405#M24801</link>
    <description>&lt;P&gt;Hello Bart,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure about this. I guess more people will reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But consider telling your users about the lifetime parameter in the LoadTable action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this Communities Library Article for an explanation :&lt;/P&gt;
&lt;P&gt;Tired of deleting temporary CAS tables? Let CAS do it for you.&lt;BR /&gt;Posted 11-19-2021 02:15 PM | by briankinnebrew (3513 views)&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Tired-of-deleting-temporary-CAS-tables-Let-CAS-do-it-for-you/ta-p/781309" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Tired-of-deleting-temporary-CAS-tables-Let-CAS-do-it-for-you/ta-p/781309&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you put lifetime on 180, your CAS table will disappear after 3 minutes (3 * 60 = 180).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 17:12:11 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2022-08-05T17:12:11Z</dc:date>
    <item>
      <title>Cleanup CASUSER tables</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827389#M24800</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On Viya 4, as CAS memory is a scarce resource, we want to periodically cleanup in-memory CASUSER tables that are older than x days.&lt;/P&gt;
&lt;P&gt;Since CASUSER is a Personal CASLIB, it is only accessible to the user who owns the CAS session.&lt;/P&gt;
&lt;P&gt;Is there a way to do this centrally?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Bart&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 15:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827389#M24800</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2022-08-05T15:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanup CASUSER tables</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827405#M24801</link>
      <description>&lt;P&gt;Hello Bart,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure about this. I guess more people will reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But consider telling your users about the lifetime parameter in the LoadTable action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this Communities Library Article for an explanation :&lt;/P&gt;
&lt;P&gt;Tired of deleting temporary CAS tables? Let CAS do it for you.&lt;BR /&gt;Posted 11-19-2021 02:15 PM | by briankinnebrew (3513 views)&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Tired-of-deleting-temporary-CAS-tables-Let-CAS-do-it-for-you/ta-p/781309" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Tired-of-deleting-temporary-CAS-tables-Let-CAS-do-it-for-you/ta-p/781309&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you put lifetime on 180, your CAS table will disappear after 3 minutes (3 * 60 = 180).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 17:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827405#M24801</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-08-05T17:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanup CASUSER tables</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827419#M24802</link>
      <description>&lt;P&gt;Hi Koen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply. While that is an option I don't think this option is available for tables imported using the Viya interfaces or those loaded from SAS94 to CAS. Also it puts the responsibility for housekeeping with the users where we probably both know they are not so good at that &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A periodic restart of the CAS Server would do the job of course but that seems a bit rigorous.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 18:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827419#M24802</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2022-08-05T18:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanup CASUSER tables</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827424#M24803</link>
      <description>&lt;P&gt;Hello Bart,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed, do not rely on the end-users for keeping the environment healthy.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most servers are patched (non-SAS stuff) and rebooted every month and then the memory is purged of course.&lt;/P&gt;
&lt;P&gt;But a re-start also kicks out the tables that are in CAS (in memory) for a few minutes.&lt;/P&gt;
&lt;P&gt;So re-starting is not the best option to do what you want to achieve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the job scheduler (see Environment Manager cog | gear icon), is a sample job :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sbxkoenk_0-1659724779163.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74204i8BA447E5E5EB681F/image-size/large?v=v2&amp;amp;px=999" role="button" title="sbxkoenk_0-1659724779163.png" alt="sbxkoenk_0-1659724779163.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But I do not know how to see its source code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can schedule it and read the LOG of course.&lt;BR /&gt;Maybe it can serve as inspiration (?).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 18:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827424#M24803</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-08-05T18:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanup CASUSER tables</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827427#M24804</link>
      <description>&lt;P&gt;On top of my previous reply (see just above!) :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See also here :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Viya administrators can now get personal with users' Caslibs&lt;BR /&gt;By Gerry Nelson on SAS Users February 17, 2020&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sgf/2020/02/17/viya-administrators-personal-caslibs" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sgf/2020/02/17/viya-administrators-personal-caslibs/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Myth Busters: CAS Tables Hog All the Memory (They don’t)&lt;BR /&gt;Posted Friday | by StephenFoerster (69 views)&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Myth-Busters-CAS-Tables-Hog-All-the-Memory-They-don-t/ta-p/826205" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Myth-Busters-CAS-Tables-Hog-All-the-Memory-They-don-t/ta-p/826205&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4 Rules to Understand CAS Management of In-Memory Data&lt;BR /&gt;Posted 09-13-2019 03:42 PM | by RobCollum (10094 views)&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/4-Rules-to-Understand-CAS-Management-of-In-Memory-Data/ta-p/588652" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/4-Rules-to-Understand-CAS-Management-of-In-Memory-Data/ta-p/588652&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 18:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827427#M24804</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-08-05T18:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanup CASUSER tables</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827439#M24805</link>
      <description>&lt;P&gt;Hi Koen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This one tells how to do it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Viya administrators can now get personal with users' Caslibs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By Gerry Nelson on SAS Users February 17, 2020&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sgf/2020/02/17/viya-administrators-personal-caslibs" target="_blank" rel="noopener nofollow noreferrer"&gt;https://blogs.sas.com/content/sgf/2020/02/17/viya-administrators-personal-caslibs/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From there:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;With the &lt;EM&gt;(super user)&lt;/EM&gt; role assumed, the administrator can execute the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;accessControl.accessPersonalCaslibs&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;action and the subsequent&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;table.caslibinfo&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;action returns all caslibs including any personal caslibs that existed when the session started.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 20:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Cleanup-CASUSER-tables/m-p/827439#M24805</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2022-08-05T20:11:29Z</dc:date>
    </item>
  </channel>
</rss>

