<?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 CREATE or REPLACE PROCEUDRE with explicit SQL passed to DBMS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/886227#M350205</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/403793"&gt;@Schalk_Burger&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks! This helped immensely with debugging. Was setting a variable to SQL script and used EXEC() to execute but kept getting errors when using SAS Explicit Passthrough. When I set this, I could see that the SQL script assigned to the variables had missing spaces due to SAS not parsing ENTER as a space. This really helped me immensely.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not sure what that means.&lt;/P&gt;
&lt;P&gt;Did you perhaps have lines like this in the code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'this is some long quoted string
that is too long for one line 
of code'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You should clean up the code (whether or not you push it to Teradata via SAS) to not have single quoted strings that span lines.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'this is some long quoted string'
||' that is too long for one line'
||' of code'&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 25 Jul 2023 12:15:35 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-07-25T12:15:35Z</dc:date>
    <item>
      <title>Teradata CREATE or REPLACE PROCEUDRE with explicit SQL passed to DBMS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340874#M272724</link>
      <description>&lt;P&gt;Is it possible to execute explicit SQL against a Teradata database to perform a CREATE/REPLACE PROCEDURE on the database? I am running into errors when I attempt to do this. The Teradata Stored Procedure was developed and tested&amp;nbsp;in SQL Assistant and works without issue. When I move it over into SAS the 'REPLACE PROCEDURE...' Teradata SQL code portion fails. If I create the procedure using Teradata SQL Assistant I can successfully execute a 'CALL PROCEDURE();' statement using explicit pass through SQL.&amp;nbsp; Below is a simplified version of what I am trying execute.&amp;nbsp; The log first has this message twice:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: The quoted string currently being processed has become more than 262 characters long. You might have unbalanced quotation&lt;/P&gt;
&lt;P&gt;marks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;followed by this Error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Teradata execute: Syntax error: Invalid SQL Statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;noerrorstop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;connect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; teradata(server=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"myserver"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; user=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;usr"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; password=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;pw"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; connection=global mode=teradata);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;execute&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;REPLACE PROCEDURE MYDB.my_proc (IN DB_name VARCHAR(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;128&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;), IN TBL_name VARCHAR(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;128&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;SQL SECURITY INVOKER&lt;/P&gt;
&lt;P&gt;BEGIN&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;IF EXISTS(SELECT &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; FROM DBC.TablesV WHERE DatabaseName =:DB_name AND TABLENAME = :TBL_name) THEN&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; CALL DBC.SysExecSQL(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt; INSERT INTO '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||:DB_name||&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'.'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||:TBL_name||&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;SELECT&lt;/P&gt;
&lt;P&gt;AU_NUM&lt;/P&gt;
&lt;P&gt;, OUTLET_ID&lt;/P&gt;
&lt;P&gt;, sale_wk&lt;/P&gt;
&lt;P&gt;, COUNT(DISTINCT account) AS accounts&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;BMGU_TEMP.ddd_startright&lt;FONT color="#800080" face="Courier New" size="3"&gt;;'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; );&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;ELSE&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; CALL DBC.SysExecSQL(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt; CREATE MULTISET TABLE '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||:DB_name||&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'.'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||:TBL_name||&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;' AS (&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;SELECT&lt;/P&gt;
&lt;P&gt;AU_NUM&lt;/P&gt;
&lt;P&gt;, OUTLET_ID&lt;/P&gt;
&lt;P&gt;, sale_wk&lt;/P&gt;
&lt;P&gt;, COUNT(DISTINCT account) AS accounts&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;mydb1.mytable&lt;/P&gt;
&lt;P&gt;) WITH DATA&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt; PRIMARY INDEX(AU_NUM, sale_wk);'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000" face="Courier New" size="3"&gt;END&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; IF;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000" face="Courier New" size="3"&gt;END&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;) by teradata;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The quoted text within both of the &lt;FONT face="Courier New"&gt;DBC.SysExecSQL() parts is considerably longer than what I have shown above, but I had to change the query to remove company information. Even though the text is within a execute() by teradata; statement and being passed to the DBMS, is it possibly an issue with quotes? Again, the entire REPLACE PROCEDURE... statement executes without issue on Teradata.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: Couldn't figure out how to turn off the emoji's, but anywhere there is an emoji should be :DB_Name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Thanks.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 17:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340874#M272724</guid>
      <dc:creator>DerekD_WF</dc:creator>
      <dc:date>2017-03-14T17:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata CREATE or REPLACE PROCEUDRE with explicit SQL passed to DBMS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340879#M272725</link>
      <description>&lt;P&gt;Interesting. I wouldn't think creating/replacing a procedure should be a problem. I've run all sorts of stuff in Oracle using explicit passthrough, and I don't think Teradata would be different. My guess is that it is a quoting problem, I've run into similar problems and they're always a pain to track down. Have you tried creating a much simpler procedure, ideally one without all the internal quoting, to see if that works? &amp;nbsp;If so, then you'll know it's a quoting issue and can start adding parts back in piecemeal to try and track down what's going wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 17:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340879#M272725</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2017-03-14T17:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata CREATE or REPLACE PROCEUDRE with explicit SQL passed to DBMS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340902#M272726</link>
      <description>&lt;P&gt;I tried a much smaller/simpler procedure. I no longer get the note about long string/unbalanced quotes but I still get the error "&lt;/P&gt;
&lt;P&gt;ERROR: Teradata execute: Syntax error: Invalid SQL Statement." In looking in the log and what is being executed by Teradata it appears to all by syntactically correct. There is some white space added due to tabs in my formatting/indenting of the procedure but I wouldn't think that is impacting anything.&amp;nbsp; Here's the log excerpt:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;78 proc sql noerrorstop;&lt;/P&gt;
&lt;P&gt;79 connect to teradata(server="myserver" user="&amp;amp;usr" password="&amp;amp;pw" connection=global mode=teradata);&lt;/P&gt;
&lt;P&gt;80 execute(&lt;/P&gt;
&lt;P&gt;81 REPLACE PROCEDURE MYDB.my_proc (IN DB_name VARCHAR(128), IN TBL_name VARCHAR(128))&lt;/P&gt;
&lt;P&gt;82 SQL SECURITY INVOKER&lt;/P&gt;
&lt;P&gt;83 BEGIN&lt;/P&gt;
&lt;P&gt;84 IF EXISTS(SELECT 1 FROM DBC.TablesV WHERE DatabaseName = :DB_name AND TABLENAME = :TBL_name) THEN&lt;/P&gt;
&lt;P&gt;85 CALL DBC.SysExecSQL('&lt;/P&gt;
&lt;P&gt;86 INSERT INTO '||:DB_name||'.'||:TBL_name||'&lt;/P&gt;
&lt;P&gt;87 SELECT TOP 50 ACCT_NUM, OPEN_DT&lt;/P&gt;
&lt;P&gt;88 FROM DB1.ACCOUNTS;' );&lt;/P&gt;
&lt;P&gt;89 ELSE&lt;/P&gt;
&lt;P&gt;90 CALL DBC.SysExecSQL('&lt;/P&gt;
&lt;P&gt;91 CREATE MULTISET TABLE '||:DB_name||'.'||:TBL_name||' AS (&lt;/P&gt;
&lt;P&gt;92 SELECT TOP 50 ACCT_NUM, OPEN_DT&lt;/P&gt;
&lt;P&gt;93 FROM DB1.ACCOUNTS&lt;/P&gt;
&lt;P&gt;94 ) WITH DATA&lt;/P&gt;
&lt;P&gt;95 PRIMARY INDEX(ACCT_NUM);');&lt;/P&gt;
&lt;P&gt;96 END IF;&lt;/P&gt;
&lt;P&gt;97 END;&lt;/P&gt;
&lt;P&gt;98 ) by teradata;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TERADATA_0: Executed: on connection 0&lt;/P&gt;
&lt;P&gt;REPLACE PROCEDURE MYDB.my_proc (IN DB_name VARCHAR(128), IN TBL_name VARCHAR(128)) SQL SECURITY INVOKER BEGIN IF&lt;/P&gt;
&lt;P&gt;EXISTS(SELECT 1 FROM DBC.TablesV WHERE DatabaseName = :DB_name AND TABLENAME = :TBL_name) THEN CALL DBC.SysExecSQL(' INSERT INTO&lt;/P&gt;
&lt;P&gt;'||:DB_name||'.'||:TBL_name||' SELECT TOP 50 ACCT_NUM, OPEN_DT FROM DB1.ACCOUNTS;' ); ELSE CALL&lt;/P&gt;
&lt;P&gt;DBC.SysExecSQL(' CREATE MULTISET TABLE '||:DB_name||'.'||:TBL_name||' AS ( SELECT TOP 50 ACCT_NUM, OPEN_DT FROM&lt;/P&gt;
&lt;P&gt;DB1.ACCOUNTS ) WITH DATA PRIMARY INDEX(ACCT_NUM);'); END IF; END;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DBMS_TIMER: summary statistics&lt;/P&gt;
&lt;P&gt;DBMS_TIMER: total SQL execution seconds were: 0&lt;/P&gt;
&lt;P&gt;DBMS_TIMER: dbiopen/dbiclose timespan was 0.&lt;/P&gt;
&lt;P&gt;ERROR: Teradata execute: Syntax error: Invalid SQL Statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 18:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340902#M272726</guid>
      <dc:creator>DerekD_WF</dc:creator>
      <dc:date>2017-03-14T18:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata CREATE or REPLACE PROCEUDRE with explicit SQL passed to DBMS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340913#M272727</link>
      <description>&lt;P&gt;What do you have set for the SASTRACE options? &amp;nbsp;I usually run my code with the following so any Oracle error messages are passed back to the SAS Log, that may help determine why Teradata doesn't like the code if you haven't already.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;OPTIONS &amp;nbsp;NOSTSUFFIX;&lt;BR /&gt;OPTIONS  SASTRACELOC=SASLOG;
OPTIONS  SASTRACE=',,t,dbs';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 18:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340913#M272727</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2017-03-14T18:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata CREATE or REPLACE PROCEUDRE with explicit SQL passed to DBMS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340940#M272728</link>
      <description>&lt;P&gt;This is my normal settings for those options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option debug=dbms_timers&lt;/P&gt;
&lt;P&gt;sastrace=',,,d'&lt;/P&gt;
&lt;P&gt;sastraceloc=saslog nostsuffix;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I took it a couple of steps farther to get more detailed info and went with this and re-ran and it only provided a little more information like the timing and some return codes. Not sure if there's a way to see what the return codes mean.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;SASTRACE=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;',,dt,dsa'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;FROM THE LOG:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;ACCESS ENGINE: Entering dbiclose&lt;/P&gt;
&lt;P&gt;TERADATA: trclose()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Summary Statistics for TERADATA are:&lt;/P&gt;
&lt;P&gt;Total SQL execution seconds were: 0.002083&lt;/P&gt;
&lt;P&gt;Total seconds used by the TERADATA ACCESS engine were 0.002773&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ACCESS ENGINE: DBICLOSE open_id 0, connect_id 0&lt;/P&gt;
&lt;P&gt;ACCESS ENGINE: Exiting dbiclos with rc=0X00000000&lt;/P&gt;
&lt;P&gt;ACCESS ENGINE: Exiting execute with rc=0X8003180C&lt;/P&gt;
&lt;P&gt;ERROR: Teradata execute: Syntax error: Invalid SQL Statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 19:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340940#M272728</guid>
      <dc:creator>DerekD_WF</dc:creator>
      <dc:date>2017-03-14T19:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata CREATE or REPLACE PROCEUDRE with explicit SQL passed to DBMS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340948#M272729</link>
      <description>&lt;P&gt;That's unfortunate, Oracle is usually quite helpful with error codes on stuff like this, but I've only used Teradata very briefly so don't know what else I can offer. &amp;nbsp;The only other thing I'd suggest is to continue to pare down the code until you get a CREATE PROCEDURE that actually works, even if it's not really doing anything besides creating an empty procedure or something. &amp;nbsp;Once you get something that actually runs, you can start adding in bits and pieces until the errors come back, which should tell you what's going wrong. &amp;nbsp;Otherwise I guess you can open a SAS Support ticket, or maybe someone else will have better insight into Teradata specific troubleshooting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I wasn't of more help.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 20:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340948#M272729</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2017-03-14T20:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata CREATE or REPLACE PROCEUDRE with explicit SQL passed to DBMS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340953#M272730</link>
      <description>&lt;P&gt;I appreciate your responses and assistance. I'll probably first proceed with a SAS Support Ticket just to confirm if there's some limitation with the SAS/ACCESS Teradata preventing this. As I cannot see anything that would be preventing it from running. I can take the code that is sent to Teradata verbatim from the SAS log, paste into Teradata SQL Assistant and execute it without issue.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 20:50:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/340953#M272730</guid>
      <dc:creator>DerekD_WF</dc:creator>
      <dc:date>2017-03-14T20:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata CREATE or REPLACE PROCEUDRE with explicit SQL passed to DBMS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/393400#M272731</link>
      <description>&lt;P&gt;Derek - Did you get a response for this ? I am attempting the same thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael&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;</description>
      <pubDate>Tue, 05 Sep 2017 23:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/393400#M272731</guid>
      <dc:creator>Tucky</dc:creator>
      <dc:date>2017-09-05T23:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata CREATE or REPLACE PROCEUDRE with explicit SQL passed to DBMS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/393519#M272732</link>
      <description>&lt;P&gt;Yes, but I wasn't able to validate if the suggestions worked due to security policy on my system and not being allowed to make changes to ODBC settings. Essentially, the SAS tech stated the problem was with Teradata SQL Assistant (This is what I was using to develop my SQL script) and a setting that impacts the query output. Here was the response from my ticket:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;You need to go to the ODBC administrator &amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;You can get to it doing this&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt; Select Start=&amp;gt;Run&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt; Type in ODBC&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt; &amp;nbsp;Select the ODBC administrator &amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt; &amp;nbsp;Find the DSN you are working with in SQL assistant&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt; &amp;nbsp;Select Configure&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt; &amp;nbsp;Click on the Options button&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt; Then select Disable Parsing. &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 06 Sep 2017 11:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/393519#M272732</guid>
      <dc:creator>DerekD_WF</dc:creator>
      <dc:date>2017-09-06T11:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata CREATE or REPLACE PROCEUDRE with explicit SQL passed to DBMS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/886181#M350194</link>
      <description>&lt;P&gt;Thanks! This helped immensely with debugging. Was setting a variable to SQL script and used EXEC() to execute but kept getting errors when using SAS Explicit Passthrough. When I set this, I could see that the SQL script assigned to the variables had missing spaces due to SAS not parsing ENTER as a space. This really helped me immensely.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 04:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/886181#M350194</guid>
      <dc:creator>Schalk_Burger</dc:creator>
      <dc:date>2023-07-25T04:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Teradata CREATE or REPLACE PROCEUDRE with explicit SQL passed to DBMS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/886227#M350205</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/403793"&gt;@Schalk_Burger&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks! This helped immensely with debugging. Was setting a variable to SQL script and used EXEC() to execute but kept getting errors when using SAS Explicit Passthrough. When I set this, I could see that the SQL script assigned to the variables had missing spaces due to SAS not parsing ENTER as a space. This really helped me immensely.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not sure what that means.&lt;/P&gt;
&lt;P&gt;Did you perhaps have lines like this in the code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'this is some long quoted string
that is too long for one line 
of code'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You should clean up the code (whether or not you push it to Teradata via SAS) to not have single quoted strings that span lines.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'this is some long quoted string'
||' that is too long for one line'
||' of code'&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jul 2023 12:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Teradata-CREATE-or-REPLACE-PROCEUDRE-with-explicit-SQL-passed-to/m-p/886227#M350205</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-25T12:15:35Z</dc:date>
    </item>
  </channel>
</rss>

