<?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: SAS/Access to Teradata - How to create volatile tables from SAS datasets in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-to-Teradata-How-to-create-volatile-tables-from-SAS/m-p/75571#M7516</link>
    <description>Thanks a lot!&lt;BR /&gt;
&lt;BR /&gt;
Proc Append is working absolutely fine!&lt;BR /&gt;
&lt;BR /&gt;
Apprecite your help.</description>
    <pubDate>Thu, 26 Feb 2009 16:15:47 GMT</pubDate>
    <dc:creator>Sid</dc:creator>
    <dc:date>2009-02-26T16:15:47Z</dc:date>
    <item>
      <title>SAS/Access to Teradata - How to create volatile tables from SAS datasets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-to-Teradata-How-to-create-volatile-tables-from-SAS/m-p/75569#M7514</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I want to create volatile table in teradata using SAS dataset.&lt;BR /&gt;
I tried varios options but still stuck!&lt;BR /&gt;
SAS support documentation gives information only about creating Volatile tables and not for creating volatile tables using SAS datasets!&lt;BR /&gt;
&lt;BR /&gt;
1&amp;gt; Does anyone know how this can be done by Libname? What options do i need to specify?&lt;BR /&gt;
2&amp;gt; By Pass-thru, I tried this = &lt;BR /&gt;
proc sql;&lt;BR /&gt;
&lt;BR /&gt;
 CONNECT to teradata(user='XXX' pw='YYY' server=XX connection=global);&lt;BR /&gt;
   execute (CREATE VOLATILE TABLE temp1 (&lt;BR /&gt;
                    UNIQUE_ID	char(10) NOT NULL&lt;BR /&gt;
	)&lt;BR /&gt;
	ON COMMIT PRESERVE ROWS) by teradata; &lt;BR /&gt;
			&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
But after this, Insert does not work. Pass Thru Insert requires only Literal values.&lt;BR /&gt;
&lt;BR /&gt;
I also tried =&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
Create volatile table as (select * from sas_dataset)&lt;BR /&gt;
But this also does not work. I am running SAS on production server (&amp;amp; not on my local machine). So, SAS does not recognize sas_dataset inside CONNECT statement ! &lt;BR /&gt;
&lt;BR /&gt;
I would be very much thankful for suggestions ??!!</description>
      <pubDate>Thu, 26 Feb 2009 00:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-to-Teradata-How-to-create-volatile-tables-from-SAS/m-p/75569#M7514</guid>
      <dc:creator>Sid</dc:creator>
      <dc:date>2009-02-26T00:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access to Teradata - How to create volatile tables from SAS datasets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-to-Teradata-How-to-create-volatile-tables-from-SAS/m-p/75570#M7515</link>
      <description>You may find information at the SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  and do a search on your topic, or as I did, you will find the Google advanced search argument will generate some DOC results found at the SAS site:&lt;BR /&gt;
&lt;BR /&gt;
create volatile table teradata site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 26 Feb 2009 03:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-to-Teradata-How-to-create-volatile-tables-from-SAS/m-p/75570#M7515</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-02-26T03:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access to Teradata - How to create volatile tables from SAS datasets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-to-Teradata-How-to-create-volatile-tables-from-SAS/m-p/75571#M7516</link>
      <description>Thanks a lot!&lt;BR /&gt;
&lt;BR /&gt;
Proc Append is working absolutely fine!&lt;BR /&gt;
&lt;BR /&gt;
Apprecite your help.</description>
      <pubDate>Thu, 26 Feb 2009 16:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-to-Teradata-How-to-create-volatile-tables-from-SAS/m-p/75571#M7516</guid>
      <dc:creator>Sid</dc:creator>
      <dc:date>2009-02-26T16:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access to Teradata - How to create volatile tables from SAS datasets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-to-Teradata-How-to-create-volatile-tables-from-SAS/m-p/75572#M7517</link>
      <description>If you want to setup a volatile table then insert from a SAS table use below. &lt;BR /&gt;
&lt;BR /&gt;
  Please note that the volatile table only reliably lasts for the duration of the entire Proc Sql.  &lt;BR /&gt;
&lt;BR /&gt;
   code:  &lt;BR /&gt;
&lt;BR /&gt;
libname trlib clear;&lt;BR /&gt;
libname trlib teradata user=youruserid password="yourpassword"  connection=global;&lt;BR /&gt;
&lt;BR /&gt;
/* Setup the volatile table with the variables.*/&lt;BR /&gt;
 &lt;BR /&gt;
proc sql;&lt;BR /&gt;
  connect to teradata(User=youruserid  password="yourpassword" connection=global);  &lt;BR /&gt;
  execute (create volatile table temp1&lt;BR /&gt;
             ( first_variable decimal (12,0), second_variable decimal(13))&lt;BR /&gt;
      on commit preserve rows) by teradata;&lt;BR /&gt;
  execute (commit work) by teradata;   &lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
 insert into trlib.temp1&lt;BR /&gt;
   select  first_variable , second_variable&lt;BR /&gt;
   from YOUR_SAS_TABLE ;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
  .... other SAS and Teradata retrievals&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
quit;</description>
      <pubDate>Tue, 03 Mar 2009 18:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-to-Teradata-How-to-create-volatile-tables-from-SAS/m-p/75572#M7517</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-03T18:14:45Z</dc:date>
    </item>
  </channel>
</rss>

