<?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 vs pass through in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/libname-vs-pass-through/m-p/143795#M38245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my view, one of the advantages of using pass-through is that you can be sure that the code, table joins, etc is processed by the DBMS engine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With libname access, SAS may not be able to pass the code to the DBMS for processing. As a result, expensive table joins may be passed in their entirety back to SAS to handle -- which increases network traffic, table sizes, processing time, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, libname method can be much easier to work with since you can dispense with having to use DBMS-specific code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If joins and code are fairly straightforward, and I am fairly confident that SAS will pass the query to the DBMS for processing, then I will use the libname method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, I use pass-through.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2014 01:25:41 GMT</pubDate>
    <dc:creator>Fugue</dc:creator>
    <dc:date>2014-06-17T01:25:41Z</dc:date>
    <item>
      <title>libname vs pass through</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/libname-vs-pass-through/m-p/143794#M38244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;Can anyone please explain to me the advantage of the one&amp;nbsp; over the other or any good article&amp;nbsp; i can&amp;nbsp; read about this?&lt;/P&gt;&lt;P&gt;If i use the 1st i know&amp;nbsp; i can link all the oracle&amp;nbsp; tables to SAS and&amp;nbsp; play with them(update,join,....) and then save them back in&amp;nbsp; Oracle. The 2nd one is kinda annoying to me but i ve seen many times ppl use it more then the 1st one.Why? Memory-wise,CPU wise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 00:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/libname-vs-pass-through/m-p/143794#M38244</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2014-06-17T00:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: libname vs pass through</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/libname-vs-pass-through/m-p/143795#M38245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my view, one of the advantages of using pass-through is that you can be sure that the code, table joins, etc is processed by the DBMS engine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With libname access, SAS may not be able to pass the code to the DBMS for processing. As a result, expensive table joins may be passed in their entirety back to SAS to handle -- which increases network traffic, table sizes, processing time, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, libname method can be much easier to work with since you can dispense with having to use DBMS-specific code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If joins and code are fairly straightforward, and I am fairly confident that SAS will pass the query to the DBMS for processing, then I will use the libname method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, I use pass-through.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 01:25:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/libname-vs-pass-through/m-p/143795#M38245</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2014-06-17T01:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: libname vs pass through</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/libname-vs-pass-through/m-p/143796#M38246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the nice explanation Fugue.&lt;/P&gt;&lt;P&gt;So if i have lets say 2M - 8M record tables i should use pass through ,huh even though the joins are quite straightforward ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 02:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/libname-vs-pass-through/m-p/143796#M38246</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2014-06-17T02:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: libname vs pass through</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/libname-vs-pass-through/m-p/143797#M38247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd be inclined to agree with you as a general rule -- explicit PROC SQL pass-through would be the superior choice in that case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 20:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/libname-vs-pass-through/m-p/143797#M38247</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2014-06-17T20:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: libname vs pass through</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/libname-vs-pass-through/m-p/143798#M38248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my experience I've found Oracle more fiddly to tune well compared to other databases such as SQL Server. In which case PROC SQL pass-through gives you better control to do things like Oracle hints for parallelisation for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also dont forget other SAS options for tuning database queries. My favourite is READBUFF = this can have a huge impact on query performance, and they work equally well for LIBNAME and pass-through.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 22:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/libname-vs-pass-through/m-p/143798#M38248</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-06-17T22:10:05Z</dc:date>
    </item>
  </channel>
</rss>

