<?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: Access Volatile Teradata Table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Access-Volatile-Teradata-Table/m-p/293594#M61140</link>
    <description>&lt;P&gt;Before you create your volatile table first create a libref using the same connection details, including the CONNECTION=GLOBAL setting, and include the DBMSTEMP=YES option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname tdwork teradata user="youruserid" password="yourpassword" 
    mode=teradata  server="servername" 
    connection=global dbmstemp=yes
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then from SAS you can view the volatile table your SQL code generated as TDWORK.TEMP. &amp;nbsp;You will also be able to see the tables from future PROC SQL steps (that use the same connection details).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Leave that libref active for as long as you want to be able to view your volatile tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2016 00:46:50 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2016-08-24T00:46:50Z</dc:date>
    <item>
      <title>Access Volatile Teradata Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-Volatile-Teradata-Table/m-p/293573#M61130</link>
      <description>&lt;P&gt;I want to access volatile teradata table in SAS. I am able to create the volatile table using the following code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
 connect to teradata (user="youruserid" password="yourpassword" mode=teradata  server="servername" connection=global);
 execute(
 create volatile table temp as (
 select id
 , region
 , sector
 , income
 from ls_policy_inter
 group by 1,2
 )
 with data primary index (id)
 on commit preserve rows
 ) by teradata;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So if i need to use the table created in the above code in the subsequent code. I can access only permanent teradata table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 20:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-Volatile-Teradata-Table/m-p/293573#M61130</guid>
      <dc:creator>Ujjawal</dc:creator>
      <dc:date>2016-08-23T20:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Access Volatile Teradata Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-Volatile-Teradata-Table/m-p/293591#M61138</link>
      <description>&lt;P&gt;This post might point you in the right direction:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Can-SAS-code-create-an-index-on-a-volatile-table-in-Teradata/m-p/275835#U275835" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Can-SAS-code-create-an-index-on-a-volatile-table-in-Teradata/m-p/275835#U275835&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 23:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-Volatile-Teradata-Table/m-p/293591#M61138</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-08-23T23:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Access Volatile Teradata Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-Volatile-Teradata-Table/m-p/293594#M61140</link>
      <description>&lt;P&gt;Before you create your volatile table first create a libref using the same connection details, including the CONNECTION=GLOBAL setting, and include the DBMSTEMP=YES option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname tdwork teradata user="youruserid" password="yourpassword" 
    mode=teradata  server="servername" 
    connection=global dbmstemp=yes
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then from SAS you can view the volatile table your SQL code generated as TDWORK.TEMP. &amp;nbsp;You will also be able to see the tables from future PROC SQL steps (that use the same connection details).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Leave that libref active for as long as you want to be able to view your volatile tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 00:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-Volatile-Teradata-Table/m-p/293594#M61140</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-08-24T00:46:50Z</dc:date>
    </item>
  </channel>
</rss>

