<?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 Passthrough Syntax Error Troubleshoot in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-Passthrough-Syntax-Error-Troubleshoot/m-p/927363#M44746</link>
    <description>&lt;P&gt;In Teradata syntax there are two key things you have left out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) At the end of the CREATE TABLE statement you need some like WITH DATA (look up the syntax I don't remember it exactly) if you actually want the data to be saved.&lt;/P&gt;
&lt;P&gt;2) Teradata is a highly parallel setup.&amp;nbsp; It does this by partitioning the data with a PRIMARY INDEX.&amp;nbsp; You want a primary index that does not skew the data so that only some of the "nodes" have all of the data.&amp;nbsp; If you do not specify the PRIMARY INDEX then it will pick the first variable.&amp;nbsp; Which might be a very poor choice.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 22:26:46 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2024-05-07T22:26:46Z</dc:date>
    <item>
      <title>Teradata Passthrough Syntax Error Troubleshoot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-Passthrough-Syntax-Error-Troubleshoot/m-p/927355#M44744</link>
      <description>&lt;P&gt;I have been looking at this code syntax for hours, the Teradata code runs in a different environment, but bringing it through Enterprise Guide is giving me issues.&amp;nbsp; The error I am getting is:&amp;nbsp;ERROR: Teradata execute: Syntax error: expected something between ')' and ';'.&amp;nbsp; I can't seem to figure out what the issue is.&amp;nbsp; I appreciate any help or insight on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL NOERRORSTOP;
CONNECT TO TERADATA (AUTHDOMAIN=xx  server="xxx" connection=global mode=teradata);
  execute (drop table TestServer.Test3) BY Teradata;
  execute (create table TestServer.Test3 as
  
(
select *
from TestServer.Test1

UNION ALL

select * 
from TestServer.Test2

))BY Teradata;
 quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 May 2024 21:06:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-Passthrough-Syntax-Error-Troubleshoot/m-p/927355#M44744</guid>
      <dc:creator>IgawaKei29</dc:creator>
      <dc:date>2024-05-07T21:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata Passthrough Syntax Error Troubleshoot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-Passthrough-Syntax-Error-Troubleshoot/m-p/927359#M44745</link>
      <description>&lt;P&gt;Try it without the extra brackets:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL NOERRORSTOP;
CONNECT TO TERADATA (AUTHDOMAIN=xx  server="xxx" connection=global mode=teradata);
  execute (drop table TestServer.Test3) BY Teradata;
  execute (create table TestServer.Test3 as
select *
from TestServer.Test1
UNION ALL
select * 
from TestServer.Test2
) BY Teradata;
 quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 May 2024 21:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-Passthrough-Syntax-Error-Troubleshoot/m-p/927359#M44745</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2024-05-07T21:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata Passthrough Syntax Error Troubleshoot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-Passthrough-Syntax-Error-Troubleshoot/m-p/927363#M44746</link>
      <description>&lt;P&gt;In Teradata syntax there are two key things you have left out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) At the end of the CREATE TABLE statement you need some like WITH DATA (look up the syntax I don't remember it exactly) if you actually want the data to be saved.&lt;/P&gt;
&lt;P&gt;2) Teradata is a highly parallel setup.&amp;nbsp; It does this by partitioning the data with a PRIMARY INDEX.&amp;nbsp; You want a primary index that does not skew the data so that only some of the "nodes" have all of the data.&amp;nbsp; If you do not specify the PRIMARY INDEX then it will pick the first variable.&amp;nbsp; Which might be a very poor choice.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 22:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-Passthrough-Syntax-Error-Troubleshoot/m-p/927363#M44746</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-05-07T22:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata Passthrough Syntax Error Troubleshoot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-Passthrough-Syntax-Error-Troubleshoot/m-p/927366#M44747</link>
      <description>I tried without the extra brackets and got the message: &lt;BR /&gt;ERROR: Teradata execute: Syntax error, expected something like a name or a Unicode delimited identifier or '(' between the 'as' &lt;BR /&gt;       keyword and the 'select' keyword.</description>
      <pubDate>Tue, 07 May 2024 23:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-Passthrough-Syntax-Error-Troubleshoot/m-p/927366#M44747</guid>
      <dc:creator>IgawaKei29</dc:creator>
      <dc:date>2024-05-07T23:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata Passthrough Syntax Error Troubleshoot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-Passthrough-Syntax-Error-Troubleshoot/m-p/927367#M44748</link>
      <description>Thank you!  That was it.. I was missing the With Data and Primary Index!  Really appreciate the help.&lt;BR /&gt;&lt;BR /&gt; ) with data primary index(id))  by teradata;</description>
      <pubDate>Tue, 07 May 2024 23:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-Passthrough-Syntax-Error-Troubleshoot/m-p/927367#M44748</guid>
      <dc:creator>IgawaKei29</dc:creator>
      <dc:date>2024-05-07T23:32:48Z</dc:date>
    </item>
  </channel>
</rss>

