<?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: Count for 50 or 100 tables with one shot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125950#M25670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is something you could do quite easily by reading the DICTIONARY.TABLES dataset. There are a lot of previous posts about finding out information about your table and columns using this technique. In addition, there are Tech Support notes like this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/25/436.html"&gt;http://support.sas.com/kb/25/436.html&lt;/A&gt;, and documentation topics like this one:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/65065/HTML/default/viewer.htm#n0cqcq4fhom7qtn17t7zkfdkxp4f.htm"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/65065/HTML/default/viewer.htm#n0cqcq4fhom7qtn17t7zkfdkxp4f.htm&lt;/A&gt; (see example 6)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; The variables in DICTIONARY.TABLES include a variable called NOBS and another called CRDATE -- which are the count of physical observations and the creation date, respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 13:41:57 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2013-10-28T13:41:57Z</dc:date>
    <item>
      <title>Count for 50 or 100 tables with one shot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125949#M25669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;I have some 50 tables and i need&amp;nbsp; table count of each. Apart from running select count (*) from table name.&lt;/P&gt;&lt;P&gt;Do we have any other method that will give in single shot 50 or 100 tables count and table name with proper layout.&lt;/P&gt;&lt;P&gt;Can anyone suggest on this plz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="80" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 846px; HEIGHT: 98px; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;table name1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;count1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;table name2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;count2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;table name3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;count3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;|&lt;/P&gt;&lt;P&gt;|&lt;/P&gt;&lt;P&gt;|&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 13:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125949#M25669</guid>
      <dc:creator>jayanth_sas</dc:creator>
      <dc:date>2013-10-28T13:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count for 50 or 100 tables with one shot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125950#M25670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is something you could do quite easily by reading the DICTIONARY.TABLES dataset. There are a lot of previous posts about finding out information about your table and columns using this technique. In addition, there are Tech Support notes like this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/25/436.html"&gt;http://support.sas.com/kb/25/436.html&lt;/A&gt;, and documentation topics like this one:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/65065/HTML/default/viewer.htm#n0cqcq4fhom7qtn17t7zkfdkxp4f.htm"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/65065/HTML/default/viewer.htm#n0cqcq4fhom7qtn17t7zkfdkxp4f.htm&lt;/A&gt; (see example 6)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; The variables in DICTIONARY.TABLES include a variable called NOBS and another called CRDATE -- which are the count of physical observations and the creation date, respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 13:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125950#M25670</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-10-28T13:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count for 50 or 100 tables with one shot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125951#M25671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;Thank you for your information. But i am little worried to use dictionary. Because there seems to be every time i need to select respective table name in find for your contents. Actually i dont want contents at all. I only require table name and respective count of that table like 500 observations. if number of tables are 50 or &amp;gt;50 at single shot how i can get the output which shows 50 table names with respective counts in proper lay out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 17:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125951#M25671</guid>
      <dc:creator>jayanth_sas</dc:creator>
      <dc:date>2013-10-28T17:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count for 50 or 100 tables with one shot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125952#M25672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open up sashelp.vtable and take a look at the columns and run the following and see what it outputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc print data=sashelp.vtable (obs=20);&lt;/P&gt;&lt;P&gt;var libname memname nobs nlobs nvar;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 17:10:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125952#M25672</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-10-28T17:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count for 50 or 100 tables with one shot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125953#M25673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi reeza,&lt;/P&gt;&lt;P&gt;Its nice. But i have created a new library and i only want count from that particular library and not from any other (rawdata,gismaps ets) with out mentioning obs. Can you plz suggest me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 17:28:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125953#M25673</guid>
      <dc:creator>jayanth_sas</dc:creator>
      <dc:date>2013-10-28T17:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count for 50 or 100 tables with one shot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125954#M25674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what your issue is.&amp;nbsp; Just run the query and use the data in whatever way you want.&lt;/P&gt;&lt;P&gt;Use a WHERE clause the select the tables you are interested in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;libname mylib 'mypath';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc sql ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;select memname,nlobs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;from dictionary.tables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;where libname='MYLIB'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 17:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125954#M25674</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-10-28T17:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count for 50 or 100 tables with one shot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125955#M25675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Tom.&lt;/P&gt;&lt;P&gt;Got it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 18:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-for-50-or-100-tables-with-one-shot/m-p/125955#M25675</guid>
      <dc:creator>jayanth_sas</dc:creator>
      <dc:date>2013-10-28T18:18:55Z</dc:date>
    </item>
  </channel>
</rss>

