<?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 Proc Sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Libname-vs-Proc-Sql/m-p/517480#M139920</link>
    <description>&lt;P&gt;If you use "simple" filtering, they should be equally efficient.&lt;/P&gt;
&lt;P&gt;But if you are doing advances logic in the query, explicit pass through (FROM CONNECTION TO) &lt;EM&gt;might&lt;/EM&gt; be faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My preference is to use LIBNAME connections if possible, since it is simpler to code, and potentially RDBMS independent.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Nov 2018 14:12:42 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2018-11-30T14:12:42Z</dc:date>
    <item>
      <title>Libname vs Proc Sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-vs-Proc-Sql/m-p/517003#M139685</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If we want to pull the data from a database to SAS, which approach is more efficient? Libname or Proc SQL Connect to?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Madhu&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 11:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-vs-Proc-Sql/m-p/517003#M139685</guid>
      <dc:creator>MadhuKorni</dc:creator>
      <dc:date>2018-11-29T11:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Libname vs Proc Sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-vs-Proc-Sql/m-p/517008#M139689</link>
      <description>&lt;P&gt;The libname statement does not pull anything, it establishes a connection to the database, so that the tables can be used as if they are datasets. Efficiency depends on the size of the tables and what you want to do with the data.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 12:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-vs-Proc-Sql/m-p/517008#M139689</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-11-29T12:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Libname vs Proc Sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-vs-Proc-Sql/m-p/517480#M139920</link>
      <description>&lt;P&gt;If you use "simple" filtering, they should be equally efficient.&lt;/P&gt;
&lt;P&gt;But if you are doing advances logic in the query, explicit pass through (FROM CONNECTION TO) &lt;EM&gt;might&lt;/EM&gt; be faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My preference is to use LIBNAME connections if possible, since it is simpler to code, and potentially RDBMS independent.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 14:12:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-vs-Proc-Sql/m-p/517480#M139920</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-11-30T14:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Libname vs Proc Sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-vs-Proc-Sql/m-p/517496#M139926</link>
      <description>&lt;P&gt;The advantage of using a LIBREF is that SAS will convert your queries into appropriate code for the remote database.&lt;/P&gt;
&lt;P&gt;The advantage of using SQL is that you can write your own query in pass-thru code and potentially do a better job of making that SQL efficient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course you could just use your libref in your SQL code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib oracle .... ;
proc sql ;
  connect using mylib;
  ....
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Nov 2018 14:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-vs-Proc-Sql/m-p/517496#M139926</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-30T14:43:49Z</dc:date>
    </item>
  </channel>
</rss>

