<?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 Oracle Library - Table Contents in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Oracle-Library-Table-Contents/m-p/72244#M15575</link>
    <description>Code below gives me table information except for number of physical observations for all the tables in Justice Oracle library.&lt;BR /&gt;
&lt;BR /&gt;
How can I get list of library name, member name and no. of records in each table? &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
LIBNAME justice ORACLE &lt;BR /&gt;
PATH=Total.world &lt;BR /&gt;
SCHEMA=usa &lt;BR /&gt;
USER=xxxxx &lt;BR /&gt;
PASSWORD="xxxxxxx" &lt;BR /&gt;
READBUFF=1&lt;BR /&gt;
; &lt;BR /&gt;
&lt;BR /&gt;
Proc Sql ;&lt;BR /&gt;
create table test1 as&lt;BR /&gt;
select libname, memname, nobs&lt;BR /&gt;
from dictionary.tables&lt;BR /&gt;
where libname='JUSTICE' ;&lt;BR /&gt;
quit ;</description>
    <pubDate>Thu, 02 Jun 2011 19:24:25 GMT</pubDate>
    <dc:creator>GPatel</dc:creator>
    <dc:date>2011-06-02T19:24:25Z</dc:date>
    <item>
      <title>Oracle Library - Table Contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Oracle-Library-Table-Contents/m-p/72244#M15575</link>
      <description>Code below gives me table information except for number of physical observations for all the tables in Justice Oracle library.&lt;BR /&gt;
&lt;BR /&gt;
How can I get list of library name, member name and no. of records in each table? &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
LIBNAME justice ORACLE &lt;BR /&gt;
PATH=Total.world &lt;BR /&gt;
SCHEMA=usa &lt;BR /&gt;
USER=xxxxx &lt;BR /&gt;
PASSWORD="xxxxxxx" &lt;BR /&gt;
READBUFF=1&lt;BR /&gt;
; &lt;BR /&gt;
&lt;BR /&gt;
Proc Sql ;&lt;BR /&gt;
create table test1 as&lt;BR /&gt;
select libname, memname, nobs&lt;BR /&gt;
from dictionary.tables&lt;BR /&gt;
where libname='JUSTICE' ;&lt;BR /&gt;
quit ;</description>
      <pubDate>Thu, 02 Jun 2011 19:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Oracle-Library-Table-Contents/m-p/72244#M15575</guid>
      <dc:creator>GPatel</dc:creator>
      <dc:date>2011-06-02T19:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Library - Table Contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Oracle-Library-Table-Contents/m-p/72245#M15576</link>
      <description>You will probably need to get this with explicit pass-through SQL.  Something like this ought to do it:&lt;BR /&gt;
proc sql;&lt;BR /&gt;
connect to oracle (path=Total.world user=xxxx password=xxxx);&lt;BR /&gt;
select * from connection to oracle&lt;BR /&gt;
    (SELECT owner, table_name, num_rows&lt;BR /&gt;
    FROM ALL_TABLES&lt;BR /&gt;
    WHERE OWNER='USA' )&lt;BR /&gt;
;&lt;BR /&gt;
disconnect from oracle;&lt;BR /&gt;
quit;</description>
      <pubDate>Thu, 02 Jun 2011 20:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Oracle-Library-Table-Contents/m-p/72245#M15576</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2011-06-02T20:46:29Z</dc:date>
    </item>
  </channel>
</rss>

