<?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 the count of total records from all the tables in a library. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450574#M113449</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200312"&gt;@Srigyan&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;noobs is blank. is there any macro which can help.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;"noobs" is an option for proc print. Read my post thoroughly.&lt;/P&gt;
&lt;P&gt;Here is some code for reference:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
set sashelp.class;
run;

data cars;
set sashelp.cars;
run;

proc sql;
select sum(nobs) as nobs from dictionary.tables where libname = 'WORK' and memtype = 'DATA';
select memname, nobs from dictionary.tables where libname = 'WORK';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;                        nobs
                    --------
                         455
                                                

                                      Number of
                                       Physical
 Member Name                       Observations
 ----------------------------------------------
 CARS                                       428
 CLASS                                       19
 _PRODSAVAIL                                  8
&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Apr 2018 11:15:20 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-04-03T11:15:20Z</dc:date>
    <item>
      <title>How to get the count of total records from all the tables in a library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450562#M113443</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;How to get the count of total records from all the tables in a library. I have one library with multiple datasets. I want to know what is the number of records in each of the tables. how can I do it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 10:42:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450562#M113443</guid>
      <dc:creator>Srigyan</dc:creator>
      <dc:date>2018-04-03T10:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the count of total records from all the tables in a library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450565#M113444</link>
      <description>&lt;P&gt;Retrieve the nobs from dictionary.tables or sashelp.vtable.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 10:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450565#M113444</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-03T10:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the count of total records from all the tables in a library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450569#M113447</link>
      <description>&lt;P&gt;noobs is blank. is there any macro which can help.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 10:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450569#M113447</guid>
      <dc:creator>Srigyan</dc:creator>
      <dc:date>2018-04-03T10:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the count of total records from all the tables in a library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450571#M113448</link>
      <description>&lt;PRE&gt;proc sql;
  select sum(nobs) from sashelp.vtable where libname="YOURLIB";
quit;&lt;/PRE&gt;
&lt;P&gt;Replace yourlib with your libname, and make sure its upper case.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 10:58:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450571#M113448</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-03T10:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the count of total records from all the tables in a library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450574#M113449</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200312"&gt;@Srigyan&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;noobs is blank. is there any macro which can help.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;"noobs" is an option for proc print. Read my post thoroughly.&lt;/P&gt;
&lt;P&gt;Here is some code for reference:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
set sashelp.class;
run;

data cars;
set sashelp.cars;
run;

proc sql;
select sum(nobs) as nobs from dictionary.tables where libname = 'WORK' and memtype = 'DATA';
select memname, nobs from dictionary.tables where libname = 'WORK';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;                        nobs
                    --------
                         455
                                                

                                      Number of
                                       Physical
 Member Name                       Observations
 ----------------------------------------------
 CARS                                       428
 CLASS                                       19
 _PRODSAVAIL                                  8
&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Apr 2018 11:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450574#M113449</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-03T11:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the count of total records from all the tables in a library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450597#M113462</link>
      <description>&lt;P&gt;some i am getting dots(.) in nobs, i am not getting any values.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 12:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450597#M113462</guid>
      <dc:creator>Srigyan</dc:creator>
      <dc:date>2018-04-03T12:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the count of total records from all the tables in a library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450609#M113467</link>
      <description>&lt;P&gt;Don't feed me meaningless oneliners, POST YOUR CODE. And run mine AS IT IS, so you get a reference.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450609#M113467</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-03T13:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the count of total records from all the tables in a library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450631#M113479</link>
      <description>&lt;P&gt;proc sql;&lt;BR /&gt;select sum(nobs) as nobs from dictionary.tables where libname = 'G2NONPII' and memtype = 'DATA';&lt;BR /&gt;select memname, nobs from dictionary.tables where libname = 'G2NONPII';&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its giving me&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;TABLE NAME&lt;/TD&gt;&lt;TD&gt;Nobs&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;T1&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;T2&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;T3&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450631#M113479</guid>
      <dc:creator>Srigyan</dc:creator>
      <dc:date>2018-04-03T13:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the count of total records from all the tables in a library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450634#M113481</link>
      <description>&lt;P&gt;If your data library points to a database -- not a folder of SAS data sets -- then NOBS might might not be available in the metadata that SAS can see.&amp;nbsp; Instead, you might need to use PROC SQL with COUNT(*) or issue a database-specific query using PROC SQL and the CONNECT clause.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if the library&amp;nbsp;&lt;STRONG&gt;is&lt;/STRONG&gt; a folder of SAS files but they are VIEW type and not DATA, then you won't be able to see the record count in the metadata.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:47:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-count-of-total-records-from-all-the-tables-in-a/m-p/450634#M113481</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-04-03T13:47:57Z</dc:date>
    </item>
  </channel>
</rss>

