<?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 determine number of rows in a MS Access table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144301#M28784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want my SAS program to query a MS Access table and determine the number of rows in the table. How can I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro that works well on SAS data sets, using the ATTRN function; but this returns a -1 for MS Access tables, and according to the docs for ATTRN, a -1 means that the number of rows is not available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose I could write a program that copies the entire table to a SAS data set, but if the MS Access table is huge, this is requires a lot of time to accomplish the task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2013 20:00:16 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2013-11-14T20:00:16Z</dc:date>
    <item>
      <title>How to determine number of rows in a MS Access table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144301#M28784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want my SAS program to query a MS Access table and determine the number of rows in the table. How can I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro that works well on SAS data sets, using the ATTRN function; but this returns a -1 for MS Access tables, and according to the docs for ATTRN, a -1 means that the number of rows is not available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose I could write a program that copies the entire table to a SAS data set, but if the MS Access table is huge, this is requires a lot of time to accomplish the task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 20:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144301#M28784</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-11-14T20:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine number of rows in a MS Access table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144302#M28785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be possible as ms-access is having that type of information. &lt;A href="http://msdn.microsoft.com/en-us/library/office/bb208624(v=office.12).aspx"&gt;http://msdn.microsoft.com/en-us/library/office/bb208624(v=office.12).aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Perhahps the special odbc queries &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#p1f29m86u65hken1deqcybowtgma.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#p1f29m86u65hken1deqcybowtgma.htm"&gt;SAS/ACCESS(R) 9.3 for Relational Databases: Reference, Second Edition&lt;/A&gt; are working&lt;/P&gt;&lt;P&gt;perhaps ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 20:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144302#M28785</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-11-14T20:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine number of rows in a MS Access table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144303#M28786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the Access table appear in dictionary.tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select nobs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.tables where libname='LIBRARY' and memname='TABLENAME';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;might work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 21:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144303#M28786</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-11-14T21:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine number of rows in a MS Access table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144304#M28787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it appears in the dictionary tables, but the column in the dictionary table that contains the number of rows is missing for MS Acess tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 21:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144304#M28787</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-11-14T21:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine number of rows in a MS Access table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144305#M28788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A generic solution would be just to use SQL:&lt;/P&gt;&lt;P&gt;&amp;nbsp; select count(*) from MS_ACCESS_Table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 22:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144305#M28788</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-11-14T22:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine number of rows in a MS Access table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144306#M28789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, SASKiwi, that works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not know you could use a structure such as count(*), I thought you had to specify a variable name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 12:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144306#M28789</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-11-15T12:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine number of rows in a MS Access table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144307#M28790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not know you diid not know you could do SQL to MS-SQL-access. I was thinking you were asking could do SQL and behaving like a DBMS.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.w3schools.com/sql/sql_func_count.asp" title="http://www.w3schools.com/sql/sql_func_count.asp"&gt;SQL COUNT() Function&lt;/A&gt; (w3schools.com) it is showing a lot more functionality as just the count. A lot o them will work.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 16:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-determine-number-of-rows-in-a-MS-Access-table/m-p/144307#M28790</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-11-15T16:25:38Z</dc:date>
    </item>
  </channel>
</rss>

