<?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 can I get total counts of observations of 100 datasets in one shot. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-total-counts-of-observations-of-100-datasets-in/m-p/335181#M75823</link>
    <description>&lt;P&gt;Better use NLOBS .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select sum(nlobs) as TotalRows
from dictionary.tables
where libname eq 'WORK' and memname like '%XX%';
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 23 Feb 2017 02:55:02 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-02-23T02:55:02Z</dc:date>
    <item>
      <title>How can I get total counts of observations of 100 datasets in one shot.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-total-counts-of-observations-of-100-datasets-in/m-p/335081#M75767</link>
      <description>&lt;P&gt;Hello Techiez,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help to get total count of observation in all dataset from a Library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose a library contains 50 datasets(tables).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some table have X observation , some has Y observation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want total count of all the datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ritesh&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 19:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-total-counts-of-observations-of-100-datasets-in/m-p/335081#M75767</guid>
      <dc:creator>Riteshdell</dc:creator>
      <dc:date>2017-02-22T19:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get total counts of observations of 100 datasets in one shot.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-total-counts-of-observations-of-100-datasets-in/m-p/335088#M75773</link>
      <description>&lt;P&gt;This example uses work library, but you can substitute your own lib:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select sum(nobs) as TotalRows
from dictionary.tables
where libname eq 'WORK';
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 19:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-total-counts-of-observations-of-100-datasets-in/m-p/335088#M75773</guid>
      <dc:creator>nehalsanghvi</dc:creator>
      <dc:date>2017-02-22T19:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get total counts of observations of 100 datasets in one shot.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-total-counts-of-observations-of-100-datasets-in/m-p/335092#M75777</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41810" target="_self"&gt;nehalsanghv&lt;/A&gt;&amp;nbsp;you really solved my query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;A new question came to my mind realted to same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Suppose A library contains 100 dataset, and i want only 50 dataset count ( selective dataset).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Is it possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Ritesh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 19:40:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-total-counts-of-observations-of-100-datasets-in/m-p/335092#M75777</guid>
      <dc:creator>Riteshdell</dc:creator>
      <dc:date>2017-02-22T19:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get total counts of observations of 100 datasets in one shot.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-total-counts-of-observations-of-100-datasets-in/m-p/335094#M75779</link>
      <description>&lt;P&gt;Dataset names are listed in the memname column of dictionary.tables. You can list the memname values you want in the where statement. Give the entire dictionary table a look with a select *, there is a lot of useful metadata.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select sum(nobs)
from dictionary.tables
where libname = 'WORK'&lt;BR /&gt;and memname in ('TBL1','TBL2');
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Feb 2017 19:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-total-counts-of-observations-of-100-datasets-in/m-p/335094#M75779</guid>
      <dc:creator>nehalsanghvi</dc:creator>
      <dc:date>2017-02-22T19:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get total counts of observations of 100 datasets in one shot.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-total-counts-of-observations-of-100-datasets-in/m-p/335181#M75823</link>
      <description>&lt;P&gt;Better use NLOBS .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select sum(nlobs) as TotalRows
from dictionary.tables
where libname eq 'WORK' and memname like '%XX%';
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Feb 2017 02:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-total-counts-of-observations-of-100-datasets-in/m-p/335181#M75823</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-23T02:55:02Z</dc:date>
    </item>
  </channel>
</rss>

