<?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: Need a Volatile Table from Tereadata to SAS EG Syntax in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-a-Volatile-Table-from-Tereadata-to-SAS-EG-Syntax/m-p/926911#M44733</link>
    <description>Thank you, this really helped!</description>
    <pubDate>Fri, 03 May 2024 15:27:05 GMT</pubDate>
    <dc:creator>IgawaKei29</dc:creator>
    <dc:date>2024-05-03T15:27:05Z</dc:date>
    <item>
      <title>Need a Volatile Table from Tereadata to SAS EG Syntax</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-a-Volatile-Table-from-Tereadata-to-SAS-EG-Syntax/m-p/926485#M44725</link>
      <description>&lt;P&gt;I am having an issue where I am trying to create a volatile table using SAS, then being able to connect and review this table.&amp;nbsp; Ultimately I am trying to join a Teradata Volatile table with Hadoop data, but I figure this is the first step.&amp;nbsp; You can see a sample layout of my code below, and the only error I get when running is that&amp;nbsp;my_VTD_Test doesn't exist, which is true at the start of the program. Everything else completes just fine, but when I try to look at the table data, I get an error that it doesn't exist again. So it looks like its running but not gathering any data. I appreciate any feedback with this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname tdwork teradata AUTHDOMAIN=MYAUTH 
    mode=teradata  server="myserver" 
    connection=global dbmstemp=yes;


PROC SQL NOERRORSTOP;
CONNECT TO TERADATA (AUTHDOMAIN=TDAUTH  server="myserver" connection=global mode=teradata);
  execute (drop table my_VTD_Test) BY Teradata;
  execute( create volatile table my_VTD_Test as
  		  (select Name, Place, Service

from MYTDSCHEMA.Table_NAME
		
			

 )
		with data primary index(Name) On Commit Preserve Rows ) by teradata; 
		
				DISCONNECT FROM teradata;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Apr 2024 15:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-a-Volatile-Table-from-Tereadata-to-SAS-EG-Syntax/m-p/926485#M44725</guid>
      <dc:creator>IgawaKei29</dc:creator>
      <dc:date>2024-04-30T15:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Volatile Table from Tereadata to SAS EG Syntax</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-a-Volatile-Table-from-Tereadata-to-SAS-EG-Syntax/m-p/926497#M44726</link>
      <description>&lt;P&gt;First thing I would do is not make two connections to Teradata.&amp;nbsp; Then you don't have to worry about whether or not SAS will make two different connections to Teradata.&amp;nbsp; Just re-use the TDWORK connection you made with the LIBNAME statement in your PROC SQL code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname tdwork teradata AUTHDOMAIN=MYAUTH 
    mode=teradata  server="myserver" 
    connection=global dbmstemp=yes
;

PROC SQL NOERRORSTOP;
CONNECT USING TDWORK as TERADATA;
EXECUTE BY TERADATA (drop table my_VTD_Test);
EXECUTE BY TERADATA 
( create volatile table my_VTD_Test as
  (select Name, Place, Service
   from MYTDSCHEMA.Table_NAME
  ) with data primary index(Name) On Commit Preserve Rows 
);
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might also need to set the schema in your LIBNAME statement.&amp;nbsp; I seem to remember that it uses your teradata username as the schema name for the volatile tables.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 16:40:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-a-Volatile-Table-from-Tereadata-to-SAS-EG-Syntax/m-p/926497#M44726</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-04-30T16:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Volatile Table from Tereadata to SAS EG Syntax</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-a-Volatile-Table-from-Tereadata-to-SAS-EG-Syntax/m-p/926911#M44733</link>
      <description>Thank you, this really helped!</description>
      <pubDate>Fri, 03 May 2024 15:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-a-Volatile-Table-from-Tereadata-to-SAS-EG-Syntax/m-p/926911#M44733</guid>
      <dc:creator>IgawaKei29</dc:creator>
      <dc:date>2024-05-03T15:27:05Z</dc:date>
    </item>
  </channel>
</rss>

