<?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: How to get table size using proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/783297#M260553</link>
    <description>Does it have to be in PROC SQL?  PROC CONTENTS will give you that information as well.</description>
    <pubDate>Tue, 30 Nov 2021 22:25:10 GMT</pubDate>
    <dc:creator>JackHamilton</dc:creator>
    <dc:date>2021-11-30T22:25:10Z</dc:date>
    <item>
      <title>How to get table size using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/129951#M260547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me the proc sql query in SAS&amp;nbsp; that will output the size of a table(in MB or GB)&amp;nbsp; in SAS ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 12:32:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/129951#M260547</guid>
      <dc:creator>VijayKumar</dc:creator>
      <dc:date>2013-09-05T12:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get table size using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/129952#M260548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By querying the SAS dictionary, you could get a approximate figure.&lt;/P&gt;&lt;P&gt;If the table is compressed, or has index, it's getting a bit more complex.&lt;/P&gt;&lt;P&gt;If you have tables in BASE engine you could read the OS information, pipe it back to (but this wouldn't be SQL). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 12:59:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/129952#M260548</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-09-05T12:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get table size using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/129953#M260549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, forget sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;proc &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt; font-family: Courier New;"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;create&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; tab &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; libname, memname, nobs, obslen, nobs*obslen &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; Bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; dictionary.tables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; libname=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Courier New;"&gt;'YOURLIB'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 13:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/129953#M260549</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-09-05T13:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get table size using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/129954#M260550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select libname,memname,filesize,pcompress&lt;/P&gt;&lt;P&gt;&amp;nbsp; from dictionary.tables&lt;/P&gt;&lt;P&gt; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 17:20:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/129954#M260550</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-09-05T17:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get table size using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/687761#M260551</link>
      <description>&lt;P&gt;I want to know how to calculate the file size if the table has index. Could you help me, please?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 10:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/687761#M260551</guid>
      <dc:creator>jvp7</dc:creator>
      <dc:date>2020-09-30T10:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get table size using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/783158#M260552</link>
      <description>It's not a SQL query but it is a macro function - &lt;A href="https://core.sasjs.io/mf__getfilesize_8sas.html" target="_blank"&gt;https://core.sasjs.io/mf__getfilesize_8sas.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Usage:  %put %mf_getfilesize(libds=work.yourdataset,format=yes);</description>
      <pubDate>Tue, 30 Nov 2021 15:00:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/783158#M260552</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2021-11-30T15:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get table size using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/783297#M260553</link>
      <description>Does it have to be in PROC SQL?  PROC CONTENTS will give you that information as well.</description>
      <pubDate>Tue, 30 Nov 2021 22:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-size-using-proc-sql/m-p/783297#M260553</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2021-11-30T22:25:10Z</dc:date>
    </item>
  </channel>
</rss>

