13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

798 Passing <strong>SAS</strong> Functions to Teradata 4 Chapter 28ON COMMIT PRESERVE ROWS) by teradata;execute (COMMIT WORK) by teradata;quit;/* Insert 1 row into the volatile table. */proc sql;connect to teradata(user=test pw=test server=boom connection=global);execute (INSERT INTO temp1 VALUES(1)) by teradata;execute (COMMIT WORK) by teradata;quit;/* Access the temporary table through the global libref. */data _null_;set x.temp1;put _all_;run;/* Access the volatile table through the global connection. */proc sql;connect to teradata (user=test pw=test server=boom connection=global);select * from connection to teradata (select * from temp1);quit;/* Drop the connection & the volatile table is automatically dropped. */libname x clear;/* To confirm that it is gone, try to access it. */libname x teradata user=test pw=test server=boom connection=global;/* It is not there. */proc print data=x.temp1;run;Passing <strong>SAS</strong> Functions to Teradata<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Teradata passes the following <strong>SAS</strong> functions to Teradata<strong>for</strong> processing. Where the Teradata function name differs from the <strong>SAS</strong> function name,the Teradata name appears in parentheses. For more in<strong>for</strong>mation, see “PassingFunctions to the DBMS Using PROC SQL” on page 42.3 ABS3 ACOS3 ARCOSH (ACOSH)3 ARSINH (ASINH)3 ASIN3 ATAN3 ATAN23 AVG3 COALESCE3 COS3 COSH

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!