<?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: Teradata and SAS in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/299771#M20405</link>
    <description>&lt;P&gt;"Faster" is a relative word.&lt;/P&gt;
&lt;P&gt;Given the same hardware, I would say that SAS&amp;nbsp;is generally&amp;nbsp;faster, I've worked with a Teradata installation that was much slower&amp;nbsp;that the ordinary&amp;nbsp;SAS 4 core Windows server.&lt;/P&gt;
&lt;P&gt;But Teradata can deploy quite large MPP setups, so very large datasets, yes faster because&amp;nbsp;of more iron.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To join in SAS, just issue a libname to your TS schema, Be aware of that the whole TD table will be transferred&amp;nbsp;to the SAS session (unless you have some TD table specific&amp;nbsp;where filtering).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To join in TD, typically you need to upload your SAs table to TD, and then you could use SQL pass-through, or if you got the settings right, perhaps you could even use implicit SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your SAS table&amp;nbsp;is relatively&amp;nbsp;small, take a look at the DBKEY= data set option.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2016 08:05:30 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-09-21T08:05:30Z</dc:date>
    <item>
      <title>Teradata and SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/299762#M20404</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Teradata is faster than SAS and I have been told that it would be better to push queries to Teradata and &lt;BR /&gt;run them there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a SAS dataset and a large teradata table(8 million rows) and need to join them. I use a libname statement&amp;nbsp;to&lt;/P&gt;
&lt;P&gt;connect to Teradata:&lt;BR /&gt;Libname mytera teradata user='xxxx' pass='xxxxx' tdpid=abc schema=abc_efg ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm a little confused,could you give me a code example that&lt;/P&gt;
&lt;P&gt;How it would be if I want to join tables in SAS?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How it would be if I want to join them in Teradata?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 06:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/299762#M20404</guid>
      <dc:creator>Riana</dc:creator>
      <dc:date>2016-09-21T06:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata and SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/299771#M20405</link>
      <description>&lt;P&gt;"Faster" is a relative word.&lt;/P&gt;
&lt;P&gt;Given the same hardware, I would say that SAS&amp;nbsp;is generally&amp;nbsp;faster, I've worked with a Teradata installation that was much slower&amp;nbsp;that the ordinary&amp;nbsp;SAS 4 core Windows server.&lt;/P&gt;
&lt;P&gt;But Teradata can deploy quite large MPP setups, so very large datasets, yes faster because&amp;nbsp;of more iron.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To join in SAS, just issue a libname to your TS schema, Be aware of that the whole TD table will be transferred&amp;nbsp;to the SAS session (unless you have some TD table specific&amp;nbsp;where filtering).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To join in TD, typically you need to upload your SAs table to TD, and then you could use SQL pass-through, or if you got the settings right, perhaps you could even use implicit SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your SAS table&amp;nbsp;is relatively&amp;nbsp;small, take a look at the DBKEY= data set option.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 08:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/299771#M20405</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-09-21T08:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata and SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/299774#M20406</link>
      <description>&lt;P&gt;What is the joining logic between the Teradata table and the SAS one? How many rows are in your SAS table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both tables need to be in the same environment to be joined. If the SAS table is the smaller one then loading that into Teradata as a temporary table is a good approach. You can then run an SQL passthru query in Teradata to do the join.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 08:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/299774#M20406</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-09-21T08:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata and SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/301505#M20484</link>
      <description>&lt;P&gt;Can you please give me an example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 12:05:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/301505#M20484</guid>
      <dc:creator>Riana</dc:creator>
      <dc:date>2016-09-29T12:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata and SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/301776#M20485</link>
      <description>&lt;P&gt;Doriana,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As SASKiwi said, both tables need to be in the same environment to do the join.&amp;nbsp; A lot of times, analyst do not have write access to the main database.&amp;nbsp; In that case, we have to do the join in SAS.&amp;nbsp; There are a couple of strategies that I have used.&lt;/P&gt;
&lt;P&gt;1) do the SQL join referenceing the two tables and use the SQL code to minimize the columns and rows transfered from TD (using TD passthru subqueries if possible).&lt;/P&gt;
&lt;P&gt;2) Use SQL passthru to being in the smallest set of TD data that you can into a local SAS dataset without the SAS table criteria (e.g. subset on 'year' and specific columns).&amp;nbsp; Then use SQL to join resulting SAS datasets.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 15:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/301776#M20485</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2016-09-30T15:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata and SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/301940#M20493</link>
      <description>&lt;P&gt;Where processing should happen really depends on the concrete case. What you normally want to minimize with heterogenous joins (=combining data from different data sources) is the movement of data between servers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Case 1: Big&amp;nbsp;Teradata table, small SAS table, result needed in SAS only a small subset of rows in Teradata&lt;/P&gt;
&lt;P&gt;Here you certainly want to push all the processing to Teradata so you need to somehow upload the SAS data into Teradata for the join.&lt;/P&gt;
&lt;P&gt;If you only need key columns from the SAS side&amp;nbsp;to sub-set rows in Teradata then "dbkey" is great; else you probably need to go for a temporary table in Teradata (if allowed to do so).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Case 2: Big&amp;nbsp;Teradata table, small SAS table, result needed in SAS are almost all rows from Teradata table&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here processing can happen in SAS; eventually using a data step where you load your small SAS table into a hash and then do the lookup this way. Use Keep/Drop to only load the required columns from Teradata to SAS. There are also options like "readbuff" which you might want to alter from their default settings.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There is no "one fits all" approach but you need to acquire a bit a deeper understanding of how things work to come up with the right solution on a case by case basis. Below a good starting point.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5117i4D9037C1F215FFE4/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69039/HTML/default/viewer.htm#n1v1cfazem7dejn1xiq60o8zd45g.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69039/HTML/default/viewer.htm#n1v1cfazem7dejn1xiq60o8zd45g.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 01:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-and-SAS/m-p/301940#M20493</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-10-03T01:59:18Z</dc:date>
    </item>
  </channel>
</rss>

