<?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 Join Teradata table to SAS local table in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-Teradata-table-to-SAS-local-table/m-p/675767#M36680</link>
    <description>&lt;P&gt;Hi, I'm pretty new to SAS EG.&amp;nbsp; I am trying to join a table from teradata to a table I created in my work library called Work.jobs.&amp;nbsp; Below is my code but I get an error.&amp;nbsp; I put the error below my code.&amp;nbsp; Orginianlly I was going to try and connect the teradata table to a sequel server table but I wasn't sure if that was possible.&amp;nbsp; So intead, I created my work.jobs table from sequel server so that I can join it from my local folder to teradata instead.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to teradata(user="&amp;amp;user.@LDAP" tdpid=whlsp pass="&amp;amp;password.");&lt;BR /&gt;drop table work.hr;&lt;BR /&gt;create table work.hr as&lt;BR /&gt;select * from connection to teradata (&lt;BR /&gt;select a.*&lt;BR /&gt;from WDM_S_HR_NPRIV_S0.VW_CP_PROFILE_PUB a&lt;BR /&gt;join work.jobs b on a.emplid=b.Job_Owner_empid&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;);&lt;BR /&gt;disconnect from teradata;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;43 proc sql;&lt;BR /&gt;44 connect to teradata(user="&amp;amp;user.@LDAP" tdpid=whlsp pass="&amp;amp;password.");&lt;BR /&gt;45 drop table work.hr;&lt;BR /&gt;NOTE: Table WORK.HR has been dropped.&lt;BR /&gt;46 create table work.hr as&lt;BR /&gt;47 select * from connection to teradata (&lt;BR /&gt;48 select a.*&lt;BR /&gt;49 from WDM_S_HR_NPRIV_S0.VW_CP_PROFILE_PUB a&lt;BR /&gt;50 join work.jobs b on a.emplid=b.Job_Owner_empid&lt;BR /&gt;51&lt;BR /&gt;52&lt;BR /&gt;53 );&lt;BR /&gt;ERROR: Teradata prepare: Syntax error, expected something like a name or a Unicode delimited identifier or an 'UDFCALLNAME' keyword&lt;BR /&gt;or '(' between the 'join' keyword and the 'work' keyword. SQL statement was: select a.* from&lt;BR /&gt;WDM_S_HR_NPRIV_S0.VW_CP_PROFILE_PUB a join work.jobs b on a.emplid=b.Job_Owner_empid.&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;54 disconnect from teradata;&lt;BR /&gt;NOTE: Statement not executed due to NOEXEC option.&lt;BR /&gt;55 quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.42 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 21:58:20 GMT</pubDate>
    <dc:creator>frankg80</dc:creator>
    <dc:date>2020-08-10T21:58:20Z</dc:date>
    <item>
      <title>Join Teradata table to SAS local table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-Teradata-table-to-SAS-local-table/m-p/675767#M36680</link>
      <description>&lt;P&gt;Hi, I'm pretty new to SAS EG.&amp;nbsp; I am trying to join a table from teradata to a table I created in my work library called Work.jobs.&amp;nbsp; Below is my code but I get an error.&amp;nbsp; I put the error below my code.&amp;nbsp; Orginianlly I was going to try and connect the teradata table to a sequel server table but I wasn't sure if that was possible.&amp;nbsp; So intead, I created my work.jobs table from sequel server so that I can join it from my local folder to teradata instead.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to teradata(user="&amp;amp;user.@LDAP" tdpid=whlsp pass="&amp;amp;password.");&lt;BR /&gt;drop table work.hr;&lt;BR /&gt;create table work.hr as&lt;BR /&gt;select * from connection to teradata (&lt;BR /&gt;select a.*&lt;BR /&gt;from WDM_S_HR_NPRIV_S0.VW_CP_PROFILE_PUB a&lt;BR /&gt;join work.jobs b on a.emplid=b.Job_Owner_empid&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;);&lt;BR /&gt;disconnect from teradata;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;43 proc sql;&lt;BR /&gt;44 connect to teradata(user="&amp;amp;user.@LDAP" tdpid=whlsp pass="&amp;amp;password.");&lt;BR /&gt;45 drop table work.hr;&lt;BR /&gt;NOTE: Table WORK.HR has been dropped.&lt;BR /&gt;46 create table work.hr as&lt;BR /&gt;47 select * from connection to teradata (&lt;BR /&gt;48 select a.*&lt;BR /&gt;49 from WDM_S_HR_NPRIV_S0.VW_CP_PROFILE_PUB a&lt;BR /&gt;50 join work.jobs b on a.emplid=b.Job_Owner_empid&lt;BR /&gt;51&lt;BR /&gt;52&lt;BR /&gt;53 );&lt;BR /&gt;ERROR: Teradata prepare: Syntax error, expected something like a name or a Unicode delimited identifier or an 'UDFCALLNAME' keyword&lt;BR /&gt;or '(' between the 'join' keyword and the 'work' keyword. SQL statement was: select a.* from&lt;BR /&gt;WDM_S_HR_NPRIV_S0.VW_CP_PROFILE_PUB a join work.jobs b on a.emplid=b.Job_Owner_empid.&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;54 disconnect from teradata;&lt;BR /&gt;NOTE: Statement not executed due to NOEXEC option.&lt;BR /&gt;55 quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.42 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 21:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-Teradata-table-to-SAS-local-table/m-p/675767#M36680</guid>
      <dc:creator>frankg80</dc:creator>
      <dc:date>2020-08-10T21:58:20Z</dc:date>
    </item>
  </channel>
</rss>

