<?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 see record count in a table where row limit has been reached in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385353#M24827</link>
    <description>&lt;P&gt;Data is on a SAS SPD server. Which being a SAS product,&amp;nbsp;I thought stored data as sas7bdat files. I guess I thought wrong!! Removing the row limit for ACCESS datasets does fix the problem.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2017 15:21:26 GMT</pubDate>
    <dc:creator>SAS_Ryan</dc:creator>
    <dc:date>2017-08-03T15:21:26Z</dc:date>
    <item>
      <title>How to see record count in a table where row limit has been reached</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385330#M24823</link>
      <description>&lt;P&gt;I'm looking to see the number of records in a table, and am frustrated by EG's behavior when a table exceeds row limits. Under table Properties -&amp;gt; Advanced I see 10,000 rows as the record count. This is in fact the row limit, not the number of records in the table, because if I run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;select count(*)&lt;/P&gt;&lt;P&gt;from table;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the actual number of rows. Of course I can run proc sql for every table, but thats a pain. In Base SAS table properties would give you the actual row count. Am I missing something in EG? Why is this so inconvenient?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 14:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385330#M24823</guid>
      <dc:creator>SAS_Ryan</dc:creator>
      <dc:date>2017-08-03T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to see record count in a table where row limit has been reached</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385345#M24826</link>
      <description>&lt;P&gt;First, important, question. Are you trying this on SAS datasets, or on database tables that SAS is accessing through SAS/Access?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 15:06:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385345#M24826</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-08-03T15:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to see record count in a table where row limit has been reached</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385353#M24827</link>
      <description>&lt;P&gt;Data is on a SAS SPD server. Which being a SAS product,&amp;nbsp;I thought stored data as sas7bdat files. I guess I thought wrong!! Removing the row limit for ACCESS datasets does fix the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 15:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385353#M24827</guid>
      <dc:creator>SAS_Ryan</dc:creator>
      <dc:date>2017-08-03T15:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to see record count in a table where row limit has been reached</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385530#M24843</link>
      <description>&lt;P&gt;I'm sorry to say, my experience with SPD is limited.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With SAS datasets, I believe the row count is stored in the table descriptor, and is no problem to access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem with database tables is that SAS has no visibility into the row count, so it has to do a "SELECT COUNT(*)", which particularly with complex views, can be very expensive in terms of database resources. So, personally, I agree with SAS not doing it automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SPD is an interesting question. I would have thought that the record count would have been easily available to SAS via the table descriptor, but I'm not that knowledgeable. Hopefully someone else will chime in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 23:53:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385530#M24843</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-08-03T23:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to see record count in a table where row limit has been reached</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385563#M24845</link>
      <description>&lt;P&gt;Is the record count accurate or missing&amp;nbsp;value&amp;nbsp;in the sashelp.vtable dictionary table for your SPD data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, submit the following&amp;nbsp;(replacing with your SPD libname and a memname in that library):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sashelp.vtable&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; libname &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;eq&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"SASHELP"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;and&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; memname &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;eq&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"CLASS"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the "Number of Physical Observations" (nobs) and "Number of Logical Observations" (nlobs)&amp;nbsp;correctly report the record count for your data?&amp;nbsp; Or is it missing value?&amp;nbsp; (I'm curious whether the record count is surfaced through the SPD engine.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the dictionary table&amp;nbsp;does return the record count for your data, the issue may be in EG for not exposing it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As Tom indicated, SAS can't cheaply determine the record count for DBMS (it&amp;nbsp;would have&amp;nbsp;to make a pass through the data, which is expensive, thus avoids).&amp;nbsp; The record&amp;nbsp;count in the sashelp.vtable dictionary is&amp;nbsp;a missing value&amp;nbsp;in this case.&amp;nbsp; Same goes for SAS views, since the data for views is dynamically retrieved.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 04:38:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385563#M24845</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2017-08-04T04:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to see record count in a table where row limit has been reached</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385655#M24850</link>
      <description>Yes, SPD Server doesn't use sas7bdat files. But that doesn't really matter, it's just the physical file format.&lt;BR /&gt;I don't have SAS at my fingertips to try, but I'm pretty sure that the record/observation count is available from SAS, like in PROC CONTENTS. Not 100% sure about SASHELP views though.&lt;BR /&gt;If you are particularly interested in SPD Server data structures, it offers SPD Server specifc DICTIONARY tables available through explicit SQL pass through:&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/spdsug/68963/HTML/default/viewer.htm#p0zjxy7y9lagkxn1ad49k8xcsrvm.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/spdsug/68963/HTML/default/viewer.htm#p0zjxy7y9lagkxn1ad49k8xcsrvm.htm&lt;/A&gt;</description>
      <pubDate>Fri, 04 Aug 2017 14:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385655#M24850</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-08-04T14:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to see record count in a table where row limit has been reached</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385825#M24861</link>
      <description>&lt;P&gt;Why not use distionary table ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table n_obs as
 select *
  from dictionary.tables
   where libname='SASHELP' and memtype='DATA';
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 05 Aug 2017 12:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-record-count-in-a-table-where-row-limit-has-been/m-p/385825#M24861</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-08-05T12:27:02Z</dc:date>
    </item>
  </channel>
</rss>

