<?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: How do SAS/Access connections work? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-SAS-Access-connections-work/m-p/82374#M17776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have the answer, but one way to find it out quick and easy is to check with your Teradata DBA, after running your test code, just ask for the log or let DBA check it for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2013 20:25:37 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2013-01-22T20:25:37Z</dc:date>
    <item>
      <title>How do SAS/Access connections work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-SAS-Access-connections-work/m-p/82372#M17774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know what happens behind the scenes with SAS/Access connections to Teradata via a LIBNAME statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, consider this code block:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;libname TDATA teradata user=xxx password=xxx server='myserver' database='MYDB';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; set TDATA.table1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TDATA.table2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TDATA.table3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is: how many database connections are made?&amp;nbsp; Does SAS understand this as a UNION operation and convert it as such using one connection, or does it make three separate database connections?&amp;nbsp; If so, then what about SAS MERGE operations, or syntax like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; set TDATA.table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; set TDATE.table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm asking because our environment is going to enforce a new rule that no more that five concurrent sessions are allowed per user ID.&amp;nbsp; I need to understand how sessions are allocated in SAS so we can review our code and advise our users of this change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 18:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-SAS-Access-connections-work/m-p/82372#M17774</guid>
      <dc:creator>BobD</dc:creator>
      <dc:date>2013-01-22T18:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do SAS/Access connections work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-SAS-Access-connections-work/m-p/82373#M17775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I think only one connection. Once you have the libname assigned, you have access to all the tables in the library.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 19:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-SAS-Access-connections-work/m-p/82373#M17775</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2013-01-22T19:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do SAS/Access connections work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-SAS-Access-connections-work/m-p/82374#M17776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have the answer, but one way to find it out quick and easy is to check with your Teradata DBA, after running your test code, just ask for the log or let DBA check it for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 20:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-SAS-Access-connections-work/m-p/82374#M17776</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-01-22T20:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do SAS/Access connections work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-SAS-Access-connections-work/m-p/82375#M17777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with &lt;A _jive_internal="true" href="https://communities.sas.com/people/Linlin"&gt;https://communities.sas.com/people/Linlin&lt;/A&gt; and &lt;A _jive_internal="true" href="https://communities.sas.com/people/Hai.kuo"&gt;https://communities.sas.com/people/Hai.kuo&lt;/A&gt; about no of connections.&lt;/P&gt;&lt;P&gt;About what SAS actually sends down to the database is fairly documented for each Access engine.&lt;/P&gt;&lt;P&gt;For SAS datasteps, I think that WHERE, BY and pehaps KEEP/DROP dataset options are sent to the source. The rest of the data step syntax differ so much from SQL, so it would be quite cumbersome to translate to Teradata SQL.&lt;/P&gt;&lt;P&gt;So in your case, I don't think SAS will let Teradata know that there is UNION kind of thing going on, it will trigger two table scans, stream the result sequentially to the data step, which handles the processing.&lt;/P&gt;&lt;P&gt;To actually see what is sent to Teradata, use the SASTRACE options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 10:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-SAS-Access-connections-work/m-p/82375#M17777</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-01-23T10:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do SAS/Access connections work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-SAS-Access-connections-work/m-p/82376#M17778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the SAS/ACCESS documentation for Teradata (V 9.3 here):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#n1cgv251wrnsc8n1s04bam1w7jb1.htm"&gt;http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#n1cgv251wrnsc8n1s04bam1w7jb1.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are options for using more than one database connection simultaneously to speed up queries - generally for loading data, but you can set the minimum and maximum connections allowed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#n0ht8i7t92tocpn18vn0krftm85m.htm"&gt;http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#n0ht8i7t92tocpn18vn0krftm85m.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 19:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-SAS-Access-connections-work/m-p/82376#M17778</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-01-23T19:14:41Z</dc:date>
    </item>
  </channel>
</rss>

