﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Data Warehousing  / Teradata   / Pass Through in SAS / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Wed, 03 Dec 2008 18:09:36 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Pass Through in SAS</title><link>http://www.teradata.com/teradataforum/Topic9367-1-1.aspx</link><description>Wow! it worked. Thanks Bobduell..</description><pubDate>Sun, 09 Mar 2008 23:00:58 GMT</pubDate><dc:creator>Oblak</dc:creator></item><item><title>RE: Pass Through in SAS</title><link>http://www.teradata.com/teradataforum/Topic9367-1-1.aspx</link><description>It's very simple; use PROC SQL.  For convenience sake, I create SAS macro variables "terauser" and "terapass" that contain my Teradata login ID and password.  I put the macro definitions in my autoexec.sas program (which is read-only to my ID).  That way, my code doesn't need to change whenever my password changes.Here's a trivial example to create a SAS dataset containing the Teradata system date:proc sql;   connect to teradata (user="&amp;terauser" password="&amp;terapass" mode=TERADATA);   create table TERADATA_DATE as   select *   from connection to teradata (      /* Teradata SQL goes here */      select current_date      );quit;The "from connection to teradata" structure is part of the FROM component of the SELECT statement and means to submit everything between the parentheses to Teradata.To run a Teradata SQL statement that does not return a result (like CREATE TABLE or COLLECT STATISTICS), use the SAS "execute" statement:proc sql;   connect to teradata (user="&amp;terauser" password="&amp;terapass" mode=TERADATA);   execute (      collect statistics on mydb.mytable index (myindex)      ) by teradata;quit;</description><pubDate>Wed, 24 Oct 2007 14:50:24 GMT</pubDate><dc:creator>bobduell</dc:creator></item><item><title>Pass Through in SAS</title><link>http://www.teradata.com/teradataforum/Topic9367-1-1.aspx</link><description>Anybody who knows how to do a pass through statement from SAS to Teradata?</description><pubDate>Tue, 23 Oct 2007 23:41:21 GMT</pubDate><dc:creator>Oblak</dc:creator></item></channel></rss>