<?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: cas sessopts for MAXTABLEMEM to load larger blocks of memory in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837342#M10572</link>
    <description>Thank you for the article, I could not find much about the memory blocks. I have read that when loading a large table, it is recommended to set block from 16MB to larger. This can be done in session options with quotation marks as you advised.&lt;BR /&gt;How to check that this option works, that it is changed from 16 MB to 256MB, with which commando? If I suggested a wrong commando, it is because I do not know which one to use.&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Oct 2022 08:58:14 GMT</pubDate>
    <dc:creator>touwen_k</dc:creator>
    <dc:date>2022-10-07T08:58:14Z</dc:date>
    <item>
      <title>cas sessopts for MAXTABLEMEM to load larger blocks of memory</title>
      <link>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/834513#M10529</link>
      <description>&lt;P&gt;Dear SAS community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know how to use&amp;nbsp;MAXTABLEMEM in a code in SAS Studio in SAS Viya, I was trying&amp;nbsp; like that :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cas mySession sessopts=( caslib=casuser timeout=1800 locale="en_US" MAXTABLemem=8G);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it gives error:&lt;/P&gt;
&lt;P&gt;ERROR: The syntax for CASSESSOPTS requires specification of one or more name=value combinations. The entire set of combinations &lt;BR /&gt;must be within parenthesis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pls advise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Karolina&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 15:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/834513#M10529</guid>
      <dc:creator>touwen_k</dc:creator>
      <dc:date>2022-09-21T15:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: cas sessopts for MAXTABLEMEM to load larger blocks of memory</title>
      <link>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837144#M10568</link>
      <description>&lt;P&gt;Hi Karolina,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe you need to put the 8G in plings like below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas mySession sessopts=( caslib=casuser timeout=1800 locale="en_US" MAXTABLemem="8G");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 09:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837144#M10568</guid>
      <dc:creator>Mike_j</dc:creator>
      <dc:date>2022-10-06T09:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: cas sessopts for MAXTABLEMEM to load larger blocks of memory</title>
      <link>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837336#M10569</link>
      <description>Thank you, then cas accepts it. However when running this code below for different MAXTABLemem, I do not have a different number of blocks. Therefore I do not know if cas is really changing the size of the blocks. Pls advise.&lt;BR /&gt;&lt;BR /&gt;It can be any table you have loaded to memery, important part of code is as below, it gives info about the memory blocks.&lt;BR /&gt;table.tableInfo / table="iris";&lt;BR /&gt;table.tableDetails / table="iris"&lt;BR /&gt;------------------------------------------------------------------&lt;BR /&gt;proc cas;&lt;BR /&gt;session casauto;&lt;BR /&gt;&lt;BR /&gt;/* Load source data (IRIS) into a table. */&lt;BR /&gt;table.loadTable /&lt;BR /&gt;path="iris.sashdat"&lt;BR /&gt;casout={name="iris"};&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;table.tableInfo / table="iris";&lt;BR /&gt;table.tableDetails / table="iris";&lt;BR /&gt;quit;</description>
      <pubDate>Fri, 07 Oct 2022 08:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837336#M10569</guid>
      <dc:creator>touwen_k</dc:creator>
      <dc:date>2022-10-07T08:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: cas sessopts for MAXTABLEMEM to load larger blocks of memory</title>
      <link>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837337#M10570</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you, then cas accepts it. However when running this code below for different MAXTABLemem, I do not have a different number of blocks. Therefore I do not know if cas is really changing the size of the blocks. Pls advise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It can be any table you have loaded to memery, important part of code is as below, it gives info about the memory blocks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;table.tableInfo / table="iris";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;table.tableDetails / table="iris"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc cas;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;session casauto;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Load source data (IRIS) into a table. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;table.loadTable /&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;path="iris.sashdat"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;casout={name="iris"};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;table.tableInfo / table="iris";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;table.tableDetails / table="iris";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 08:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837337#M10570</guid>
      <dc:creator>touwen_k</dc:creator>
      <dc:date>2022-10-07T08:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: cas sessopts for MAXTABLEMEM to load larger blocks of memory</title>
      <link>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837339#M10571</link>
      <description>&lt;P&gt;I am a bit unsure what it is you want to accomplish.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want to distribute the dataset across worker nodes differently? load the dataset to a single worker node? something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a link to an article that describes the maxtablemem in more details:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sgf/2017/05/05/dr-strangeram-or-how-i-learned-to-stop-worrying-and-love-cas-2/" target="_blank"&gt;Dr. StrangeRAM or: How I learned to stop worrying and love CAS - SAS Users&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 08:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837339#M10571</guid>
      <dc:creator>Mike_j</dc:creator>
      <dc:date>2022-10-07T08:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: cas sessopts for MAXTABLEMEM to load larger blocks of memory</title>
      <link>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837342#M10572</link>
      <description>Thank you for the article, I could not find much about the memory blocks. I have read that when loading a large table, it is recommended to set block from 16MB to larger. This can be done in session options with quotation marks as you advised.&lt;BR /&gt;How to check that this option works, that it is changed from 16 MB to 256MB, with which commando? If I suggested a wrong commando, it is because I do not know which one to use.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Oct 2022 08:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837342#M10572</guid>
      <dc:creator>touwen_k</dc:creator>
      <dc:date>2022-10-07T08:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: cas sessopts for MAXTABLEMEM to load larger blocks of memory</title>
      <link>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837349#M10573</link>
      <description>&lt;P&gt;Okay, in that case you can use below code snippet to check the options in a session:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas cas1 sessopts=(maxtablemem="16M");                                     
proc cas;
   session cas1;
   sessionProp.listSessOpts result=r;             
run;
   print r.SessOpts[, {"Name", "Type", "Value"}]; 
run;
quit;

cas cas2 sessopts=(maxtablemem="32M");
proc cas;
   session cas2;
   sessionProp.listSessOpts result=r;             
run;
   print r.SessOpts[, {"Name", "Type", "Value"}];
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should see that the output varies for sessions with different values of the maxtablemem option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 10:18:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837349#M10573</guid>
      <dc:creator>Mike_j</dc:creator>
      <dc:date>2022-10-07T10:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: cas sessopts for MAXTABLEMEM to load larger blocks of memory</title>
      <link>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837353#M10574</link>
      <description>Thank you very much for providing clarity on this topic. It works.</description>
      <pubDate>Fri, 07 Oct 2022 11:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837353#M10574</guid>
      <dc:creator>touwen_k</dc:creator>
      <dc:date>2022-10-07T11:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: cas sessopts for MAXTABLEMEM to load larger blocks of memory</title>
      <link>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837354#M10575</link>
      <description>&lt;P&gt;Perfect. Glad I help!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 11:15:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/cas-sessopts-for-MAXTABLEMEM-to-load-larger-blocks-of-memory/m-p/837354#M10575</guid>
      <dc:creator>Mike_j</dc:creator>
      <dc:date>2022-10-07T11:15:49Z</dc:date>
    </item>
  </channel>
</rss>

