<?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: Checking if Oracle DB Table is avilable before pulling from Oracle to SAS in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Checking-if-Oracle-DB-Table-is-avilable-before-pulling-from/m-p/327332#M5212</link>
    <description>&lt;P&gt;Why not you create a temporary odbc library for your oracle DB in SAS EG or Base SAS, and check that two tables are presence or not in that database.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 10:48:24 GMT</pubDate>
    <dc:creator>Kalind_Patel</dc:creator>
    <dc:date>2017-01-25T10:48:24Z</dc:date>
    <item>
      <title>Checking if Oracle DB Table is avilable before pulling from Oracle to SAS</title>
      <link>https://communities.sas.com/t5/Developers/Checking-if-Oracle-DB-Table-is-avilable-before-pulling-from/m-p/327329#M5211</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;we got a bit of an unstable Oracle DB environment and I wonder if there is a way to check if table A &amp;amp; B is available&lt;/P&gt;&lt;P&gt;before I run my proc sql to select from them.&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Checking-if-Oracle-DB-Table-is-avilable-before-pulling-from/m-p/327329#M5211</guid>
      <dc:creator>PhilipH</dc:creator>
      <dc:date>2017-01-25T10:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if Oracle DB Table is avilable before pulling from Oracle to SAS</title>
      <link>https://communities.sas.com/t5/Developers/Checking-if-Oracle-DB-Table-is-avilable-before-pulling-from/m-p/327332#M5212</link>
      <description>&lt;P&gt;Why not you create a temporary odbc library for your oracle DB in SAS EG or Base SAS, and check that two tables are presence or not in that database.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Checking-if-Oracle-DB-Table-is-avilable-before-pulling-from/m-p/327332#M5212</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2017-01-25T10:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if Oracle DB Table is avilable before pulling from Oracle to SAS</title>
      <link>https://communities.sas.com/t5/Developers/Checking-if-Oracle-DB-Table-is-avilable-before-pulling-from/m-p/327356#M5213</link>
      <description>&lt;P&gt;You could select from dictionaries.tables as pass through, this would return what tables are available, something like:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  connect to oracle (path=...);
  create table O_DATA as
  select * from connection to oracle (
    select * from DICTIONARY.TABLES where NAME="&amp;lt;yourtable&amp;gt;");
  disconnect from oracle;
quit;

data _null_;
  set o_data;
  call execute('proc sql; ... quit;');
run;&lt;/PRE&gt;
&lt;P&gt;So pull the metadata from oracle where the name is your table (note you will need to update specifics), then in a datastep generate the proc sql to extract data only if a row for your dataset is returned, i.e. the above will return no obs if your table doesn't exist, hence will not generate the call execute.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 12:35:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Checking-if-Oracle-DB-Table-is-avilable-before-pulling-from/m-p/327356#M5213</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-25T12:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if Oracle DB Table is avilable before pulling from Oracle to SAS</title>
      <link>https://communities.sas.com/t5/Developers/Checking-if-Oracle-DB-Table-is-avilable-before-pulling-from/m-p/328591#M5214</link>
      <description>&lt;P&gt;This explicit passthrough is a good&amp;nbsp;idea. You'll need to query from &lt;A href="https://docs.oracle.com/cd/B28359_01/server.111/b28320/statviews_2105.htm#REFRN20286" target="_self"&gt;all_tables&lt;/A&gt;&amp;nbsp;- Oracle's idea of dictionary.tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 21:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Checking-if-Oracle-DB-Table-is-avilable-before-pulling-from/m-p/328591#M5214</guid>
      <dc:creator>boemskats</dc:creator>
      <dc:date>2017-01-30T21:47:07Z</dc:date>
    </item>
  </channel>
</rss>

