<?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: Proc SQL - TeraData - own sql in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215870#M16228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RafaelZ, please forget SAS/ACCESS ODBC as in improvement in contrary as you miss all teradata options you have availabel now you can expect more issues. The mode teradata / ansi (TD environment) is a basic option you should understand as the same with the SAS/ACCESS tD specifics.&amp;nbsp; You cannot circumvent that need for knowledge switching tools.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/viewer.htm#n15q85z7nwkl3pn189ekttbnnzbe.htm"&gt;http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/viewer.htm#n15q85z7nwkl3pn189ekttbnnzbe.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 13:00:19 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2015-07-07T13:00:19Z</dc:date>
    <item>
      <title>Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215859#M16217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i copy paste SQL from TeraData SQL Editor to a SAS Proc SQL program&lt;/P&gt;&lt;P&gt;i see that the sql is rejected with errors.&lt;/P&gt;&lt;P&gt;it seems that sas is not sending the sql as is but is trying to translate it from it's own format to the DB.&lt;/P&gt;&lt;P&gt;for example the substring function in teradata is spelled "substring" and is sas is "substr".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way in a sas program to simply send the sql in the database own native format?&lt;/P&gt;&lt;P&gt;Will SAS/Access ODBC solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rafael &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 08:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215859#M16217</guid>
      <dc:creator>RafaelZ</dc:creator>
      <dc:date>2015-06-29T08:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215860#M16218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's called explicit SQL pass through / thru. See on line do for details. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 10:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215860#M16218</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-06-29T10:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215861#M16219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked it up and used the "connect to " as instructed in the following link&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001384466.htm" style="font-size: 10pt; line-height: 1.5em;" title="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001384466.htm"&gt;SAS/ACCESS(R) 9.2 for Relational Databases: Reference, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately my SQL is rejected by "Teradata Prepare" (log attached below)&lt;/P&gt;&lt;P&gt;The same SQL runs smoothly&amp;nbsp; using the teradata sql editor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There seems to be ! mark on line 28 in the log which is not in the original sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background-position: initial;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The SAS System&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10:38 Tuesday, June 30, 2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background-position: initial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;*';*";*/;quit;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPTIONS PAGENO=MIN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %LET _CLIENTTASKLABEL='Program41';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %LET _CLIENTPROJECTPATH='I:\xxx\SAS\Rafael\Main\Main22.egp';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %LET _CLIENTPROJECTNAME='Main22.egp';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %LET _SASPROGRAMFILE=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS _ALL_ CLOSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPTIONS DEV=ACTIVEX;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GOPTIONS XPIXELS=0 YPIXELS=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILENAME EGSR TEMP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR STYLE=HtmlBlue&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ! STYLESHEET=(URL="file:///C:/SASHome/SASEnterpriseGuide/5.1/Styles/HtmlBlue.css") NOGTITLE NOGFOOTNOTE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ! GPATH=&amp;amp;sasworklocation ENCODING=UTF8 options(rolap="on");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background-position: initial;"&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GOPTIONS ACCESSIBLE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background-position: initial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background-position: initial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc sql;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connect to teradata as teracon (server=DWPROD&amp;nbsp; schema=DWP_VALL );&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;18&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;19&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from connection to teracon&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;21&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;23&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBM376_INTERNAL_ORGANIZATION.Division_Nbr,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBM376_INTERNAL_ORGANIZATION.Branch_Nbr,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;26&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(distinct VBM374_USED_BRANCH_CUSTOMER.Branch_Cust_IP)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;27&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBM376_INTERNAL_ORGANIZATION INNER JOIN VBM374_USED_BRANCH_CUSTOMER ON&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt; !&lt;/STRONG&gt;&lt;/SPAN&gt; (VBM376_INTERNAL_ORGANIZATION.Team_IP=VBM374_USED_BRANCH_CUSTOMER.Team_IP)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;29&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBM376_INTERNAL_ORGANIZATION.Division_Nbr&amp;nbsp; =&amp;nbsp; 700&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp; (&amp;nbsp; substring(VBM374_USED_BRANCH_CUSTOMER.Status_Code,6,2)&amp;nbsp; = '25'&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;34&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;35&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP BY&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;36&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;37&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;38&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;39&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;41&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; background-position: initial;"&gt;ERROR: Teradata prepare: Syntax error: expected something between the word 'Status_Code' and ','. SQL statement was: SELECT&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; background-position: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBM376_INTERNAL_ORGANIZATION.Division_Nbr, VBM376_INTERNAL_ORGANIZATION.Branch_Nbr, count(distinct&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; background-position: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBM374_USED_BRANCH_CUSTOMER.Branch_Cust_IP) FROM VBM376_INTERNAL_ORGANIZATION INNER JOIN VBM374_USED_BRANCH_CUSTOMER ON&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; background-position: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (VBM376_INTERNAL_ORGANIZATION.Team_IP=VBM374_USED_BRANCH_CUSTOMER.Team_IP) WHERE VBM376_INTERNAL_ORGANIZATION.Division_Nbr =&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; background-position: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 700 AND ( substring(VBM374_USED_BRANCH_CUSTOMER.Status_Code,6,2) = '25' ) GROUP BY 1, 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background-position: initial;"&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;42&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;43&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; disconnect from teracon;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background-position: initial;"&gt;NOTE: Statement not executed due to NOEXEC option.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;44&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;45&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background-position: initial;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The SAS System&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="aBn" data-term="goog_621056374" style="border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: #cccccc;"&gt;&lt;SPAN class="aQJ"&gt;10:38&lt;/SPAN&gt;&lt;/SPAN&gt;Tuesday, June 30, 2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background-position: initial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background-position: initial;"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background-position: initial;"&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background-position: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.74 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background-position: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background-position: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;46&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;47&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;49&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GOPTIONS NOACCESSIBLE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %LET _CLIENTTASKLABEL=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %LET _CLIENTPROJECTPATH=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;52&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %LET _CLIENTPROJECTNAME=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;53&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %LET _SASPROGRAMFILE=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;54&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;55&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;*';*";*/;quit;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;56&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS _ALL_ CLOSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;57&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;58&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;59&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QUIT; RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background-position: initial;"&gt;60&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 12:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215861#M16219</guid>
      <dc:creator>RafaelZ</dc:creator>
      <dc:date>2015-07-01T12:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215862#M16220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like something is wrong in your use of the substring function. Is this the correct syntax for Teradata?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 13:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215862#M16220</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2015-07-01T13:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215863#M16221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that Teradata has another "default" syntax for subtring.&lt;/P&gt;&lt;P&gt;This is not a SAS "problem". Test your Teradata SQl in SQL Assistant first, then insert into SAS SQL.&lt;/P&gt;&lt;P&gt;If you are not very comfortable with Teradata SQL, you are perhaps better off learning/using SAS SQL and use implicit SQL instead (SAS translates SAS SQL to the Teradata equivalent automatically for you).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 14:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215863#M16221</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-07-01T14:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215864#M16222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Tom and Linus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Copied&amp;amp;Pasted the exact sql to TD assistant and it runs there with no problems as you can see from the TD screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However you are both right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked in the teradata documentation and found that there are two formats for the substring function: ANSI and Teradata non of which is identical to mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="head3" id="ww664131" style="color: #4662a0; font-family: Verdana, sans-serif; font-size: 11pt; font-weight: bold; margin: 1em 0;"&gt;Teradata Syntax&lt;/P&gt;&lt;P class="ww_skin_page_overflow" style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;/P&gt;&lt;DIV class="z_anchor" id="ww664169" style="font-family: 'Microsoft Sans Serif'; font-size: 2pt; text-indent: 0pt;"&gt;&lt;IMG alt="" class="Default jiveImage" height="41" src="http://www.info.teradata.com/HTMLPubs/DB_TTU_14_00/SQL_Reference/B035_1145_111A/images/String_Ops_Funcs.084.253.1.jpg" width="512" /&gt;&lt;/DIV&gt;&lt;DIV class="z_anchor" style="font-family: 'Microsoft Sans Serif'; font-size: 2pt; text-indent: 0pt;"&gt; &lt;/DIV&gt;&lt;P class="head3" id="ww664017" style="color: #4662a0; font-family: Verdana, sans-serif; font-size: 11pt; font-weight: bold; margin: 1em 0;"&gt;ANSI Syntax&lt;/P&gt;&lt;P class="ww_skin_page_overflow" style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;/P&gt;&lt;DIV class="z_anchor" id="ww664097" style="font-family: 'Microsoft Sans Serif'; font-size: 2pt; text-indent: 0pt;"&gt;&lt;IMG alt="" class="Default jiveImage" height="49" src="http://www.info.teradata.com/HTMLPubs/DB_TTU_14_00/SQL_Reference/B035_1145_111A/images/String_Ops_Funcs.084.252.1.jpg" width="516" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still don't understand how the problematic syntax runs on TD assistant. maybe the ODBC knows how to translate it..&lt;/P&gt;&lt;P&gt;The reason that i insist on this to work is that i copy SQLs from "business objects" application to SAS programs and i try to avoid modifications as much as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this indeed is not a SAS problem &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://mail.google.com/mail/ca/u/0/?ui=2&amp;amp;ik=4890d01f70&amp;amp;view=fimg&amp;amp;th=14e4e34705a718d7&amp;amp;attid=0.1&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ9sWGgX5rMgDjBRVZrA8Z76lCXWkfeQiqqwlyfskiJtLvVd60dxPYpub7vCgULqAqTyOQlPj4ktuVJE_nMJ6t_JAPg8lCBJay1x8iGii9KG-wzggb2UgBS_pEI&amp;amp;sz=w2720-h1158&amp;amp;ats=1435831141507&amp;amp;rm=14e4e34705a718d7&amp;amp;zw&amp;amp;atsh=1" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 10:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215864#M16222</guid>
      <dc:creator>RafaelZ</dc:creator>
      <dc:date>2015-07-02T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215865#M16223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And then it's a ODBC issue...?&lt;/P&gt;&lt;P&gt;Try to past it in another ODBC client (not SAS) and see what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 11:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215865#M16223</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-07-02T11:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215866#M16224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using TD ODBC not through SAS -&amp;nbsp; it works&lt;/P&gt;&lt;P&gt;But not through SAS.&lt;/P&gt;&lt;P&gt;I would try using SAS/ACCESS ODBC&lt;/P&gt;&lt;P&gt;but we didn't purchase the license.&lt;/P&gt;&lt;P&gt;Meanwhile I think i can get along with the situation as is..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jul 2015 10:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215866#M16224</guid>
      <dc:creator>RafaelZ</dc:creator>
      <dc:date>2015-07-05T10:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215867#M16225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are going to use ANSI syntax instead of Teradata syntax then you probably should tell Teradata that first by setting the MODE= option in the CONNECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a003349368.htm"&gt;http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a003349368.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jul 2015 11:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215867#M16225</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-07-05T11:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215868#M16226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the default mode for TD SQL assistant is MODE=Teradata , the default with SAS/ACCESS is MODE=Ansi. &lt;BR /&gt;Switching the mode is not only a matter of syntax but also of behavior.&amp;nbsp; Every SQL statement with TD should be followed by a commit in Ansi mode to make the updates persistent. That is not needed with mode=Teradata. You could see that at the examples using the execute syntax using explicit pass through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting all the data to SAS with a select * is a bad idea as TD is parallel processing all data where SAS doesn't.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using volatile tables in TD will require a global SAS/TD session. The combination TD/SAS is nice but is requiring some skills for the dedicated behavior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jul 2015 14:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215868#M16226</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-07-05T14:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215869#M16227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thank you all for your replies.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;If i used SAS/ACCESS ODBC to access Teradata&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Will it be exactly the same as sending the same sql through TD assistant using the same ODBC ?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I am considering suggesting&amp;nbsp; purchasing it but i need to be sure that each SQL that i send through it will be executed&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;as if sent using the TD assistant using the same odbc&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thanks&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Rafael &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 07:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215869#M16227</guid>
      <dc:creator>RafaelZ</dc:creator>
      <dc:date>2015-07-07T07:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215870#M16228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RafaelZ, please forget SAS/ACCESS ODBC as in improvement in contrary as you miss all teradata options you have availabel now you can expect more issues. The mode teradata / ansi (TD environment) is a basic option you should understand as the same with the SAS/ACCESS tD specifics.&amp;nbsp; You cannot circumvent that need for knowledge switching tools.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/viewer.htm#n15q85z7nwkl3pn189ekttbnnzbe.htm"&gt;http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/viewer.htm#n15q85z7nwkl3pn189ekttbnnzbe.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215870#M16228</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-07-07T13:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215871#M16229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use pure Teradata SQL in SAS you'll need to load the data into another Teradata table and then Select from table table using pass through, rough example below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Connect to Teradata as TD (&amp;lt;&amp;lt;connection info&amp;gt;&amp;gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execute ( Insert into &amp;lt;&amp;lt;TeradataTableStage&amp;gt;&amp;gt; Select Col1,Col2,Col3 From TeradatatableSourceData ) by TD;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execute (commit work) by TD;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* &amp;lt;&amp;lt;&amp;lt; This commit does not happen automatically via SAS */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create Table test as &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select * From connection to TD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Select * From &amp;lt;&amp;lt;TeradataTableStage&amp;gt;&amp;gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Disconnect from TD;&lt;/P&gt;&lt;P&gt;Quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 12:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215871#M16229</guid>
      <dc:creator>JoeMadden</dc:creator>
      <dc:date>2015-07-22T12:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215872#M16230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joe, that commit will work automatically wit SAS when the connection is setup in mode=Teradata. When sharing Ansi modes tha do not share those session settings &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 17:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215872#M16230</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-07-22T17:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215873#M16231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jaap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 07:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/215873#M16231</guid>
      <dc:creator>JoeMadden</dc:creator>
      <dc:date>2015-07-23T07:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/469334#M30438</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I knew this is an old post but I am running the same issue using EG 7.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;I am able to&amp;nbsp;run the program and get the same result from Teradata by changing Substring to substr in SAS. I am not sure why&amp;nbsp;it work and would like to know is this appropriate?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to Teradata as tera(
authdomain=TeraAuth
tdpid=xxxx
mode=teradata
connection=global
);

execute (
CREATE VOLATILE TABLE Test AS (
	SELECT ID, Substr(ID,3,5) AS NewID 
	FROM YYYtable 
	GROUP BY 1,2
) WITH DATA ON COMMIT PRESERVE ROWS
) by tera;&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;If I change to&amp;nbsp;Substring (ID, 3,5) to Substr(ID,3,5) in sas, it works and gives me the same result&amp;nbsp;like Tera's......If someone could support my solution or explain a bit would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vi&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 17:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/469334#M30438</guid>
      <dc:creator>Vi_</dc:creator>
      <dc:date>2018-06-11T17:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/469530#M30455</link>
      <description>&lt;P&gt;So what confirmation do you want beyond the fact that the sub-string function is named differently in two different flavours of SQ? I suggest you look up the documentation for both for more details.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 07:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/469530#M30455</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-06-12T07:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - TeraData - own sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/470099#M30493</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I looked up Teradata's documentary. Substring and Substr are&amp;nbsp;slightly different&amp;nbsp;although they are all doing substring work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Substr is equal to Substring in Teradata.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My confusion is that when I code in sas, I ask sas to connect to Tera and perform query in tera, and then, create table in sas. So how did Teradata understand SAS substr and perform the query?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vi&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:26:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-TeraData-own-sql/m-p/470099#M30493</guid>
      <dc:creator>Vi_</dc:creator>
      <dc:date>2018-06-13T20:26:30Z</dc:date>
    </item>
  </channel>
</rss>

