<?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: pass-through for teradata using execute in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741206#M231667</link>
    <description>&lt;P&gt;Not sure why it is prompting you .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you can cut down on the number of times you need to sign-in by using a LIBREF to make the connection.&lt;/P&gt;
&lt;P&gt;Then use the CONNECT USING statement to re-use the libref connection to submit your Teradata code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname exwp teradata username=&amp;amp;exwuser. password=&amp;amp;exwpass. 
  tdpid=&amp;amp;ExWP_TDPID. mode=teradata fastload=yes
;
proc sql noprint;
connect using exwp ;
execute(...) by exwp;
...
quit;
... Other SAS steps ...
proc sql noprint;
connect using exwp ;
select ... from connection to exwp (....);
...
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 May 2021 18:26:07 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-05-13T18:26:07Z</dc:date>
    <item>
      <title>pass-through for teradata using execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741136#M231641</link>
      <description>&lt;P&gt;i have a question about passthrough below is the code.&amp;nbsp; I connect successfully but then it is asking for credentials in a dialog box .&amp;nbsp; Why is that? does this code look correct?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
connect to teradata as exwp (username=&amp;amp;exwuser. password=&amp;amp;exwpass. tdpid=&amp;amp;ExWP_TDPID. mode=teradata fastload=yes);

execute(DROP TABLE work_05.CMIHistKygjtest)by teradata;
execute (create table work_05.CMIHistKygjtest as
(select MAX(baseid) as maxhistky
FROM
    (
    SELECT COALESCE(MAX(hist_ky), 0) AS baseid FROM work_05.UMD_E0_CHD_HISTORYgjtest
    UNION all
    SELECT COALESCE(MAX(hist_ky), 0) AS baseid FROM work_05.CHD_History_gjtestwae
    ) as foo
)
 WITH DATA NO PRIMARY INDEX) by teradata;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 May 2021 14:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741136#M231641</guid>
      <dc:creator>Gayle</dc:creator>
      <dc:date>2021-05-13T14:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: pass-through for teradata using execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741159#M231650</link>
      <description>&lt;P&gt;Did you try an example of the code with &lt;STRONG&gt;no macro variables&lt;/STRONG&gt;? That would be the first thing. If that works then check how you are creating the macro variables you are providing to make sure they look the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or maybe just the wrong credentials provided.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 16:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741159#M231650</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-13T16:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: pass-through for teradata using execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741173#M231659</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/367603"&gt;@Gayle&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can we have the log?&lt;BR /&gt;Typically the dialog box pops up if there is something wrong with userid or Password OR authorization.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 16:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741173#M231659</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-05-13T16:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: pass-through for teradata using execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741202#M231666</link>
      <description>ok trying to redo it however , however i do not think there is an issue with the uid password that has been working</description>
      <pubDate>Thu, 13 May 2021 18:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741202#M231666</guid>
      <dc:creator>Gayle</dc:creator>
      <dc:date>2021-05-13T18:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: pass-through for teradata using execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741206#M231667</link>
      <description>&lt;P&gt;Not sure why it is prompting you .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you can cut down on the number of times you need to sign-in by using a LIBREF to make the connection.&lt;/P&gt;
&lt;P&gt;Then use the CONNECT USING statement to re-use the libref connection to submit your Teradata code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname exwp teradata username=&amp;amp;exwuser. password=&amp;amp;exwpass. 
  tdpid=&amp;amp;ExWP_TDPID. mode=teradata fastload=yes
;
proc sql noprint;
connect using exwp ;
execute(...) by exwp;
...
quit;
... Other SAS steps ...
proc sql noprint;
connect using exwp ;
select ... from connection to exwp (....);
...
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 18:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741206#M231667</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-05-13T18:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: pass-through for teradata using execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741282#M231705</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/367603"&gt;@Gayle&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;ok trying to redo it however , however i do not think there is an issue with the uid password that has been working&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This should have been mentioned previously. Code that works for a while and then behaves differently usually points to a change in something. Since the code didn't change then something else did. I would talk to your Teradata admin to see if they changed versions or had an "upgrade" recently. An upgrade or security "patch" may have changed the default behavior for credentials and may need to have some settings modified for running scripts.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 21:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741282#M231705</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-13T21:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: pass-through for teradata using execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741293#M231709</link>
      <description>oh thank you , i should have used 'by exwp '  not by 'by teradata'</description>
      <pubDate>Thu, 13 May 2021 22:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741293#M231709</guid>
      <dc:creator>Gayle</dc:creator>
      <dc:date>2021-05-13T22:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: pass-through for teradata using execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741295#M231711</link>
      <description>&lt;P&gt;Correct, so I suspect that has fixed your problem?&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 22:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741295#M231711</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-13T22:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: pass-through for teradata using execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741302#M231714</link>
      <description>will try it momentarily</description>
      <pubDate>Thu, 13 May 2021 23:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741302#M231714</guid>
      <dc:creator>Gayle</dc:creator>
      <dc:date>2021-05-13T23:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: pass-through for teradata using execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741316#M231718</link>
      <description>right now my session is hanging.  Once it gets unhung i will retry</description>
      <pubDate>Fri, 14 May 2021 00:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/741316#M231718</guid>
      <dc:creator>Gayle</dc:creator>
      <dc:date>2021-05-14T00:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: pass-through for teradata using execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/839817#M332022</link>
      <description>&lt;P&gt;It's been a while since the last posting, but wanted to mention this has happened to me as well.&lt;/P&gt;&lt;P&gt;My solution was to wrap the password in quotes like below&lt;/P&gt;&lt;P&gt;&amp;nbsp; password = "&amp;amp;exwpass."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 23:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/pass-through-for-teradata-using-execute/m-p/839817#M332022</guid>
      <dc:creator>Dreggs</dc:creator>
      <dc:date>2022-10-20T23:56:57Z</dc:date>
    </item>
  </channel>
</rss>

