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.

800 Passing Joins to Teradata 4 Chapter 283 TRIMDATETIME, SOUNDEX, and TIME are not entirely compatible with thecorresponding <strong>SAS</strong> functions. Also, <strong>for</strong> SOUNDEX, although Teradata always returns 4characters, <strong>SAS</strong> might return more or less than 4 characters.Passing Joins to TeradataFor a multiple libref join to pass to Teradata, all of these components of theLIBNAME statements must match exactly:3 user ID (USER=)3 password (PASSWORD=)3 account ID (ACCOUNT=)3 server (TDPID= or SERVER=)You must specify the SCHEMA= LIBNAME option to fully qualify each table namein a join <strong>for</strong> each LIBNAME that you reference.For more in<strong>for</strong>mation about when and how <strong>SAS</strong>/<strong>ACCESS</strong> passes joins to the DBMS,see “Passing Joins to the DBMS” on page 43.Maximizing Teradata Read Per<strong>for</strong>manceOverviewA major objective of <strong>SAS</strong>/<strong>ACCESS</strong> when you are reading DBMS tables is to takeadvantage of the Teradata rate of data transfer. The DBINDEX=, SPOOL=, andPREFETCH= options can help you achieve optimal read per<strong>for</strong>mance. This sectionprovides detailed in<strong>for</strong>mation about PREFETCH as a LIBNAME option andPREFETCH as a global option.Using the PreFetch FacilityOverviewPreFetch is a <strong>SAS</strong>/<strong>ACCESS</strong> Interface to Teradata facility that speeds up a <strong>SAS</strong> job byexploiting the parallel processing capability of Teradata. To obtain benefit from thefacility, your <strong>SAS</strong> job must run more than once and have these characteristics:3 use <strong>SAS</strong>/<strong>ACCESS</strong> to query Teradata DBMS tables3 should not contain <strong>SAS</strong> statements that create, update, or delete Teradata DBMStables3 run <strong>SAS</strong> code that changes infrequently or not at all.In brief, the ideal job is a stable read-only <strong>SAS</strong> job.Use of PreFetch is optional. To use the facility, you must explicitly enable it with thePREFETCH LIBNAME option.

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

Saved successfully!

Ooh no, something went wrong!