<?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 code in SAS EG 5.1 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-code-in-SAS-EG-5-1/m-p/490377#M31625</link>
    <description>&lt;P&gt;So which is it?&amp;nbsp; You say you are using passthrough, if so this piece of code you present here will be sent to the database, and the database will execute it.&amp;nbsp; Therefore it will use the functions available to the database.&lt;/P&gt;
&lt;P&gt;You then proceed to say that you can't use add_months in SAS, which is true as add_months is not a SAS function, but as the code is not being run in SAS per your first statement, this is not relevant?&lt;/P&gt;
&lt;P&gt;Please clarify what you mean, where is the code running, what logs you get etc.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Aug 2018 08:24:37 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-08-28T08:24:37Z</dc:date>
    <item>
      <title>Teradata code in SAS EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-code-in-SAS-EG-5-1/m-p/490360#M31623</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I am running below Teradata code using passthrough but facing some error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT *&lt;BR /&gt;FROM ABC LEFT JOIN BCD on A.ABC = B.BCD&lt;BR /&gt;WHERE MONTH &amp;gt; concat( cast(extract(year from add_months((DATE - extract(day from DATE)) ,-9)) as varchar(4)), SUBSTR(cast(100 + extract( month from add_months((DATE - extract(day from DATE)) ,-9)) as varchar (3)) ,2 ,2) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if we can use add_months in SAS, if not how can we resolve this?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 07:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-code-in-SAS-EG-5-1/m-p/490360#M31623</guid>
      <dc:creator>Arun_shSAS</dc:creator>
      <dc:date>2018-08-28T07:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata code in SAS EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-code-in-SAS-EG-5-1/m-p/490376#M31624</link>
      <description>&lt;P&gt;Always (always!) when you run into problem with code, show the log!&lt;/P&gt;
&lt;P&gt;And given that this is pass-thru, usually it's not a SAS issue.&lt;/P&gt;
&lt;P&gt;But are you tring to use something from the local SAS session?, not clear from your post.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 08:24:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-code-in-SAS-EG-5-1/m-p/490376#M31624</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-08-28T08:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata code in SAS EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-code-in-SAS-EG-5-1/m-p/490377#M31625</link>
      <description>&lt;P&gt;So which is it?&amp;nbsp; You say you are using passthrough, if so this piece of code you present here will be sent to the database, and the database will execute it.&amp;nbsp; Therefore it will use the functions available to the database.&lt;/P&gt;
&lt;P&gt;You then proceed to say that you can't use add_months in SAS, which is true as add_months is not a SAS function, but as the code is not being run in SAS per your first statement, this is not relevant?&lt;/P&gt;
&lt;P&gt;Please clarify what you mean, where is the code running, what logs you get etc.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 08:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-code-in-SAS-EG-5-1/m-p/490377#M31625</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-28T08:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata code in SAS EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-code-in-SAS-EG-5-1/m-p/490402#M31626</link>
      <description>&lt;P&gt;Yes, this is the teradata script i am running and expecting all the teradata function like add_month, cast can run through pass through.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: Teradata execute: Syntax error: expected something between '('
and cast.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 10:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-code-in-SAS-EG-5-1/m-p/490402#M31626</guid>
      <dc:creator>Arun_shSAS</dc:creator>
      <dc:date>2018-08-28T10:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata code in SAS EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-code-in-SAS-EG-5-1/m-p/490414#M31627</link>
      <description>Still, where's the (complete) log?&lt;BR /&gt;Given the code you presented you are/should use explicit pass through. And then your syntax problem is something for a Teradata forum to help you with.</description>
      <pubDate>Tue, 28 Aug 2018 11:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Teradata-code-in-SAS-EG-5-1/m-p/490414#M31627</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-08-28T11:21:03Z</dc:date>
    </item>
  </channel>
</rss>

