<?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: Libname Creation for an Oracle DB in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Libname-Creation-for-an-Oracle-DB/m-p/58226#M16279</link>
    <description>I have been looking on the internet for hours and didn't find anything about this issue, however 5 minutes after I posted this problem I located a SUGI containing the information I was after.&lt;BR /&gt;
&lt;BR /&gt;
However, only 90% of the tables contain data.  The 10% results in the folowing error message &lt;BR /&gt;
&lt;BR /&gt;
[ERROR] Prepare error: ICommand Prepare::Prepare Failed.  SQL Statement SELECT * From CBMRV_CLAIM.&lt;BR /&gt;
&lt;BR /&gt;
I get a similar issue when attemtion to use SQL pass through using the SELECT *, however once (a very manual method of trawling through and adding one variable at a time) I remove the offending variable it works perfectly.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone have any ideas?</description>
    <pubDate>Wed, 17 Feb 2010 02:48:06 GMT</pubDate>
    <dc:creator>Scottcom4</dc:creator>
    <dc:date>2010-02-17T02:48:06Z</dc:date>
    <item>
      <title>Libname Creation for an Oracle DB</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Libname-Creation-for-an-Oracle-DB/m-p/58225#M16278</link>
      <description>Hi Guys,&lt;BR /&gt;
&lt;BR /&gt;
At present we have SQL set up which allows us to access an Oracle DB via OLEDB (my understanding, but the code is attached to better explain).  The thing is that I would like to establish a libname for this connect, so that I can see the tables contained within.&lt;BR /&gt;
&lt;BR /&gt;
I have code to do this for a genuine Oracle connection, but can't get it to work in this instance.&lt;BR /&gt;
&lt;BR /&gt;
Would anyone have any ideas on this?&lt;BR /&gt;
&lt;BR /&gt;
Thank you in advance.&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
   connect to oledb as oradb (User = XXXXXXXX Password = XXXXXX DataSource = XXXXXXXXXXXXX provider = MSDAORA.1);;&lt;BR /&gt;
   create table list_tab as &lt;BR /&gt;
          select * from connection to oradb&lt;BR /&gt;
          (select OWNER, TABLE_NAME from ALL_TABLES);&lt;BR /&gt;
quit;</description>
      <pubDate>Wed, 17 Feb 2010 01:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Libname-Creation-for-an-Oracle-DB/m-p/58225#M16278</guid>
      <dc:creator>Scottcom4</dc:creator>
      <dc:date>2010-02-17T01:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Libname Creation for an Oracle DB</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Libname-Creation-for-an-Oracle-DB/m-p/58226#M16279</link>
      <description>I have been looking on the internet for hours and didn't find anything about this issue, however 5 minutes after I posted this problem I located a SUGI containing the information I was after.&lt;BR /&gt;
&lt;BR /&gt;
However, only 90% of the tables contain data.  The 10% results in the folowing error message &lt;BR /&gt;
&lt;BR /&gt;
[ERROR] Prepare error: ICommand Prepare::Prepare Failed.  SQL Statement SELECT * From CBMRV_CLAIM.&lt;BR /&gt;
&lt;BR /&gt;
I get a similar issue when attemtion to use SQL pass through using the SELECT *, however once (a very manual method of trawling through and adding one variable at a time) I remove the offending variable it works perfectly.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone have any ideas?</description>
      <pubDate>Wed, 17 Feb 2010 02:48:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Libname-Creation-for-an-Oracle-DB/m-p/58226#M16279</guid>
      <dc:creator>Scottcom4</dc:creator>
      <dc:date>2010-02-17T02:48:06Z</dc:date>
    </item>
  </channel>
</rss>

