<?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 How to get the size of a table in CAS? in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/How-to-get-the-size-of-a-table-in-CAS/m-p/760880#M1065</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anybody advise which is the most accurate method to get the size of a table in CAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Madalin&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 10:09:12 GMT</pubDate>
    <dc:creator>smm662002</dc:creator>
    <dc:date>2021-08-11T10:09:12Z</dc:date>
    <item>
      <title>How to get the size of a table in CAS?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-get-the-size-of-a-table-in-CAS/m-p/760880#M1065</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anybody advise which is the most accurate method to get the size of a table in CAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Madalin&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 10:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-get-the-size-of-a-table-in-CAS/m-p/760880#M1065</guid>
      <dc:creator>smm662002</dc:creator>
      <dc:date>2021-08-11T10:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the size of a table in CAS?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-get-the-size-of-a-table-in-CAS/m-p/760892#M1066</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is what you are looking for:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/caspg/cas-table-tabledetails.htm?homeOnFail" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/caspg/cas-table-tabledetails.htm?homeOnFail&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 11:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-get-the-size-of-a-table-in-CAS/m-p/760892#M1066</guid>
      <dc:creator>miaeyg</dc:creator>
      <dc:date>2021-08-11T11:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the size of a table in CAS?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-get-the-size-of-a-table-in-CAS/m-p/760908#M1067</link>
      <description>Hi Eyal,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply. &lt;BR /&gt;CAS action table.tableDetails provides two useful columns  "Data size"  and "Variable Data size". &lt;BR /&gt;Would you know if table size is the sum of "Data size"  and "Variable Data size"? &lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Madalin</description>
      <pubDate>Wed, 11 Aug 2021 13:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-get-the-size-of-a-table-in-CAS/m-p/760908#M1067</guid>
      <dc:creator>smm662002</dc:creator>
      <dc:date>2021-08-11T13:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the size of a table in CAS?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-get-the-size-of-a-table-in-CAS/m-p/761416#M1084</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1962"&gt;@smm662002&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I believe you need to sum the two. One if "fixed" size columns and the other is "variable" sized columns like varchar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 13:22:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-get-the-size-of-a-table-in-CAS/m-p/761416#M1084</guid>
      <dc:creator>miaeyg</dc:creator>
      <dc:date>2021-08-13T13:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the size of a table in CAS?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-get-the-size-of-a-table-in-CAS/m-p/978363#M3014</link>
      <description>&lt;P&gt;Here you go.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;/*Set &lt;STRONG&gt;without quotations&lt;/STRONG&gt; the &lt;STRONG&gt;libname&lt;/STRONG&gt; variable to the library name and the &lt;STRONG&gt;dsname&lt;/STRONG&gt; variable to the dataset name which you want to inquire about it's size*/&lt;/DIV&gt;&lt;DIV&gt;%let libname=?;&lt;/DIV&gt;&lt;DIV&gt;%let dsname=?;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*Initiate CAS session*/&lt;/DIV&gt;&lt;DIV&gt;cas;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*Use&lt;STRONG&gt; table.tabledetails&lt;/STRONG&gt;&amp;nbsp;to get the table size and save the result to &lt;STRONG&gt;work.cas_ds_memsize&lt;/STRONG&gt; dataset*/&lt;/DIV&gt;&lt;DIV&gt;proc cas;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;table.tabledetails result=res/ caslib="&amp;amp;libname." NAME="&amp;amp;dsname." showmem=true;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;saveresult res dataout=work.cas_ds_memsize;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;quit;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*Query &lt;STRONG&gt;work.cas_ds_memsize&lt;/STRONG&gt; dataset to display the size in &lt;STRONG&gt;megabyte (MB)&lt;/STRONG&gt;*/&lt;/DIV&gt;&lt;DIV&gt;proc sql;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;select&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"&amp;amp;libname." as CAS_Library_Name,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"&amp;amp;dsname." as CAS_Dataset_Name,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(mem.MappedMemory/1024/1024) format=8.2 as Memsize_MB&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;work.cas_ds_memsize mem&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;quit;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Nov 2025 08:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-get-the-size-of-a-table-in-CAS/m-p/978363#M3014</guid>
      <dc:creator>AmrAlmaz</dc:creator>
      <dc:date>2025-11-05T08:01:19Z</dc:date>
    </item>
  </channel>
</rss>

