<?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: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp;amp; LDAP in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/324234#M9443</link>
    <description>&lt;P&gt;If you are not aware of any metadata server, you probably don't have one. So if that's the case, you can't use AUTHDOMAIN as I understand&amp;nbsp;it, hence the login errors...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#n0aiq25zc8u8u6n1i81my0a24sd3.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#n0aiq25zc8u8u6n1i81my0a24sd3.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2017 13:14:11 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-01-12T13:14:11Z</dc:date>
    <item>
      <title>Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323912#M9436</link>
      <description>&lt;P&gt;I am trying to assist a customer to improve some very large extracts from Teradata to SAS (9.4) by using TPT/Export.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They need to use LDAP (and are successfully using AuthDomain) and SQL pass-through to use specific Teradata SQL (and currently using).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe that the syntax would be similar to the following (I am just learning SAS and pulled this out from the various manuals), but I am being told that this is not correct:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME MyTd Teradata TDPID=QA1 AUTHDOMAIN=TeradataAuth FastExport=Yes DBSliceParm=(THREADED_APPS,2) Mode=Teradata Database=QA1_PL_SAS_VIEWS LogDb=SB_PRICING;
PROC SQL;
CONNECT USING MyTd as MyTd_1;
CREATE TABLE work.term AS
SELECT *
FROM CONNECTION TO MyTd_1
(
    SELECT  PolicyNo,
            QuoteNo,
            NumTerm,
            GwTermNo,
            ModelNo,
            curmodel,
            MIN(CAST(PeriodStartDate AS date)) AS date_inc,
            MAX(CAST(PeriodEndDate AS date)) AS date_exp
    FROM policy
    WHERE    numterm IS NOT NULL
    AND      ModelNo IS NOT NULL
    GROUP BY PolicyNo, QuoteNo, NumTerm, GWTermNo, ModelNo, curmodel
    ORDER BY PolicyNo, NumTerm, GwTermNo, ModelNo;
);
DISCONNECT FROM MyTd_1;
QUIT;&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;Any ideas as to if this is actually possible and how to get this to work?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 13:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323912#M9436</guid>
      <dc:creator>TeraGrapher</dc:creator>
      <dc:date>2017-01-11T13:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323918#M9437</link>
      <description>&lt;P&gt;Well, not used teradata, however the syntax shoud be similar to how we used to connect to Oracle, something along the lines of:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  connect to db (&amp;lt;connection details eg username/password);
  create table WORK.TERM as
  select * from connection to db (

&amp;lt;your database query here&amp;gt;

  );
  disconnect from db;
quit;&lt;/PRE&gt;
&lt;P&gt;So I don't see anything majorly out, other than the connect to db. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 13:26:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323918#M9437</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-11T13:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323921#M9438</link>
      <description>&lt;P&gt;Unfortunately that's been tried and SAS just uses&amp;nbsp;ODBC for accessing Teradata and TPT is not used. Extracting millions and in some cases billions of rows using ODBC is just too slow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 13:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323921#M9438</guid>
      <dc:creator>TeraGrapher</dc:creator>
      <dc:date>2017-01-11T13:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323924#M9439</link>
      <description>&lt;P&gt;Ah, ok. &amp;nbsp;Your maybe best of speaking with your SAS rep then, TPT (Terradata Parallel Transporter) seems to be a Terradata specific function, so might need some specific software/drivers. &amp;nbsp;Can't help any further I am afraid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 13:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323924#M9439</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-11T13:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323929#M9440</link>
      <description>&lt;P&gt;For information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Teradata Parallel Transporter (TPT) is a Teradata supplied utility for loading data into and exporting data from Teradata quickly. It is available for use from SAS although the SAS documentation is somewhat lacking in detail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TPT&amp;nbsp;is already installed on the SAS server in question and tested outside of SAS to prove that it as indeed been installed correctly. Just can't get the syntax correct to use it with SAS, LDAP and SQL pass-through.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Already following up via the SAS adminstrators and I thought I'd try here as well.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 14:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323929#M9440</guid>
      <dc:creator>TeraGrapher</dc:creator>
      <dc:date>2017-01-11T14:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323954#M9441</link>
      <description>&lt;P&gt;Well, I guess that your libname syntax is sufficient. But it requires that the global option metaserver is set, and of course that you have sufficient&amp;nbsp;registrations in metadata.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 15:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323954#M9441</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-01-11T15:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323963#M9442</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;, thanks for responding. Being a SAS newbie I am not sure what you are referring to when you mention "global option metaserver".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However if this is in relation to the use of LDAP and/or LIBNAME, then this is already in use successfully and so should be O.K.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 15:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/323963#M9442</guid>
      <dc:creator>TeraGrapher</dc:creator>
      <dc:date>2017-01-11T15:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/324234#M9443</link>
      <description>&lt;P&gt;If you are not aware of any metadata server, you probably don't have one. So if that's the case, you can't use AUTHDOMAIN as I understand&amp;nbsp;it, hence the login errors...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#n0aiq25zc8u8u6n1i81my0a24sd3.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#n0aiq25zc8u8u6n1i81my0a24sd3.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 13:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/324234#M9443</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-01-12T13:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/324247#M9444</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;- no login errors, not mentioned that - LDAP is working perfectly fine in general use.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 14:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/324247#M9444</guid>
      <dc:creator>TeraGrapher</dc:creator>
      <dc:date>2017-01-12T14:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/324423#M9445</link>
      <description>&lt;P&gt;So have you been through the Teradata-specific documentation like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#n0ht8i7t92tocpn18vn0krftm85m.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#n0ht8i7t92tocpn18vn0krftm85m.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 22:37:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/324423#M9445</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-01-12T22:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/325004#M9446</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;, yes this community has only been tried after exausting the documentation. What is available is incomplete or not very explicit about TPT/API and the Export operator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 11:04:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/325004#M9446</guid>
      <dc:creator>TeraGrapher</dc:creator>
      <dc:date>2017-01-16T11:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/325341#M9468</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/98380"&gt;@TeraGrapher&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the use of explicit pass-through is messing up the code. TPT functionality must be invoked by SAS. This code is going to have problems, but it should give you an idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME MyTd Teradata TDPID=QA1 AUTHDOMAIN=TeradataAuth FastExport=Yes DBSliceParm=(THREADED_APPS,2) Mode=Teradata Database=QA1_PL_SAS_VIEWS LogDb=SB_PRICING;
PROC SQL;
CONNECT USING MyTd as MyTd_1;
CREATE TABLE work.term AS
SELECT  PolicyNo,
            QuoteNo,
            NumTerm,
            GwTermNo,
            ModelNo,
            curmodel,
            MIN(CAST(PeriodStartDate AS date)) AS date_inc,
            MAX(CAST(PeriodEndDate AS date)) AS date_exp
    FROM mytd.policy 
    WHERE    numterm IS NOT NULL
    AND      ModelNo IS NOT NULL
    GROUP BY PolicyNo, QuoteNo, NumTerm, GWTermNo, ModelNo, curmodel
    ORDER BY PolicyNo, NumTerm, GwTermNo, ModelNo;

QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There is an old'ish paper, which needs to be updated, that may help you with this. It shows many examples of TPT.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings11/142-2011.pdf" target="_self"&gt;https://support.sas.com/resources/papers/proceedings11/142-2011.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 16:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/325341#M9468</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2017-01-17T16:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using SAS PROC SQL with Teradata TPT, SQL passthrough &amp; LDAP</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/325570#M9481</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51161"&gt;@JBailey&lt;/a&gt;, thanks for this. I will read and apply if I can.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 07:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Syntax-for-using-SAS-PROC-SQL-with-Teradata-TPT-SQL-passthrough/m-p/325570#M9481</guid>
      <dc:creator>TeraGrapher</dc:creator>
      <dc:date>2017-01-18T07:20:40Z</dc:date>
    </item>
  </channel>
</rss>

