<?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: Join Sas Data Set with Oracle Table in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505053#M1088</link>
    <description>&lt;P&gt;I just want to do filter huge table with only getting my ID's. Firstly, i tried macro variable but it's exceed macro variables capacities. So i discovered the call execute method thanks to sas communities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add your&amp;nbsp; system option's code and then log likes below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ORACLE_4: Prepared: on connection 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT * FROM ORACLE_TABLE but different first name*.(Names with generic username for oracle connection)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ORACLE_5: Prepared: on connection 3&lt;/P&gt;&lt;P&gt;SELECT&amp;nbsp; VAR1,VAR2 ... VAR15 FROM&amp;nbsp; ORACLE_TABLE&amp;nbsp; WHERE&amp;nbsp; ( ("ID&amp;nbsp; IN&amp;nbsp; ( ID1 , ID2 ,ID3 ) ) ) because i tried only three ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ORACLE_6: Executed: on connection 3&lt;/P&gt;&lt;P&gt;SELECT statement&amp;nbsp; ORACLE_5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Oct 2018 12:51:32 GMT</pubDate>
    <dc:creator>muratatik</dc:creator>
    <dc:date>2018-10-17T12:51:32Z</dc:date>
    <item>
      <title>Join Sas Data Set with Oracle Table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505000#M1075</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've unique ID table include 90k rows. I want to filter ID's in oracle table. This table is quite huge approximately 100 Mio. I don't know exact observations because i guess proc contents can not show oracle table observation or index column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, i can't use libname oracle because i dont know password or username so i cant use pass through sql.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried below code but its running so slow. What should I do that make it faster?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _NULL_;
SET UNIQUE_ID_TABLE END=EOF;
IF _N_=1 THEN DO;
CALL EXECUTE("PROC SQL _METHOD;");
CALL EXECUTE("CREATE TABLE WANT AS");
CALL EXECUTE("SELECT * FROM ORACLE_TABLE");
CALL EXECUTE("WHERE ID IN ");
CALL EXECUTE("(");
END;
CALL EXECUTE(QUOTE(STRIP(ID)));
IF EOF THEN DO;
CALL EXECUTE(");");
CALL EXECUTE("QUIT;");
END;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 08:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505000#M1075</guid>
      <dc:creator>muratatik</dc:creator>
      <dc:date>2018-10-17T08:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Join Sas Data Set with Oracle Table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505003#M1076</link>
      <description>&lt;P&gt;So how do you access Oracle if you don't have a user name and a password?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 08:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505003#M1076</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-10-17T08:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Join Sas Data Set with Oracle Table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505007#M1077</link>
      <description>&lt;P&gt;Its very hard to debug two systems and their interactions with no information.&amp;nbsp; A tip which might help:&lt;/P&gt;
&lt;P&gt;Load the small table from SAS into a temporary area on the database.&amp;nbsp; Then execute the query fully on the database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will have a temporary area if you have an account on the DB presumably, but you will need to contact your system admin to help.&amp;nbsp; Much the same as pass-through, if you can't do this, then you are rate limited by the speed of transferring data back and forth across networks, which will always be slow.&amp;nbsp; And a 100million records is quite a lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 08:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505007#M1077</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-17T08:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Join Sas Data Set with Oracle Table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505031#M1082</link>
      <description>&lt;P&gt;Sorry for late response,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a generic user that created by SAS system admin and this is a&amp;nbsp; oracle library when i connect SAS Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use SAS EG 7.1&amp;nbsp; I can use proc sql with basic queries with these oracle tables. I try to figure out password information with&amp;nbsp; SASTRACE system option but it didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So simply, when i use these oracle tables, sas know this password but i don't &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&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, 17 Oct 2018 11:40:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505031#M1082</guid>
      <dc:creator>muratatik</dc:creator>
      <dc:date>2018-10-17T11:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Join Sas Data Set with Oracle Table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505043#M1085</link>
      <description>Do I understunderstand you correctly that you are issuing one query for each id? Unless you have a unique index in Oracle that could/should not be optimal (which you are experiencing).&lt;BR /&gt;&lt;BR /&gt;The simplest is to actually join those tables directly. Then you could use the DBKEY= option, which will behind the scenes issue a dynamic where in().&lt;BR /&gt;You can use &lt;BR /&gt;options msglevel = I sastraceloc = saslog sastrace = ',,,d' nostsuffix;&lt;BR /&gt;to monitor what the libname engine sends to Oracle. &lt;BR /&gt;&lt;BR /&gt;If this path is not feasible, revert to &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt; suggestion of uploading your id data set.</description>
      <pubDate>Wed, 17 Oct 2018 12:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505043#M1085</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-10-17T12:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Join Sas Data Set with Oracle Table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505053#M1088</link>
      <description>&lt;P&gt;I just want to do filter huge table with only getting my ID's. Firstly, i tried macro variable but it's exceed macro variables capacities. So i discovered the call execute method thanks to sas communities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add your&amp;nbsp; system option's code and then log likes below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ORACLE_4: Prepared: on connection 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT * FROM ORACLE_TABLE but different first name*.(Names with generic username for oracle connection)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ORACLE_5: Prepared: on connection 3&lt;/P&gt;&lt;P&gt;SELECT&amp;nbsp; VAR1,VAR2 ... VAR15 FROM&amp;nbsp; ORACLE_TABLE&amp;nbsp; WHERE&amp;nbsp; ( ("ID&amp;nbsp; IN&amp;nbsp; ( ID1 , ID2 ,ID3 ) ) ) because i tried only three ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ORACLE_6: Executed: on connection 3&lt;/P&gt;&lt;P&gt;SELECT statement&amp;nbsp; ORACLE_5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 12:51:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Join-Sas-Data-Set-with-Oracle-Table/m-p/505053#M1088</guid>
      <dc:creator>muratatik</dc:creator>
      <dc:date>2018-10-17T12:51:32Z</dc:date>
    </item>
  </channel>
</rss>

