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.

52 <strong>SAS</strong>/<strong>ACCESS</strong> Interfaces and Threaded Reads 4 Chapter 6proc reg SIMPLEdata=dblib.salesdata (keep=salesnumber maxsales);var _ALL_;run;Previous versions of <strong>SAS</strong> opened a single connection and issued:SELECT salesnumber,maxsales FROM SALESDATA;Assuming that SalesData has an integer column EmployeeNum, <strong>SAS</strong> 9.1, might opentwo connections by issuing these statements:andSELECT salesnumber,maxsales FROM salesdata WHERE (EMPLOYEENUM mod 2)=0;SELECT salesnumber,maxsales FROM SALESDATA WHERE (EMPLOYEENUM mod 2)=1;See “Autopartitioning Techniques in <strong>SAS</strong>/<strong>ACCESS</strong>” on page 57 <strong>for</strong> more in<strong>for</strong>mationabout MOD.Note: Might is an important word here. Most but not all <strong>SAS</strong>/<strong>ACCESS</strong> interfacessupport threaded reads in <strong>SAS</strong> 9.1. The partitioning WHERE clauses that <strong>SAS</strong>generates vary. In cases where <strong>SAS</strong> cannot always generate partitioning WHEREclauses, the <strong>SAS</strong> user can supply them. In addition to WHERE clauses, other ways topartition data might also exist. 4<strong>SAS</strong>/<strong>ACCESS</strong> Interfaces and Threaded ReadsHere are the <strong>SAS</strong>/<strong>ACCESS</strong> interfaces that support threaded reads. More interfacesare expected to support threaded reads in future releases.3 Aster nCluster3 DB2 Under UNIX and PC Hosts3 DB2 Under z/OS3 Greenplum3 HP Neoview3 In<strong>for</strong>mix3 ODBC3 Oracle (not supported under z/OS)3 Sybase3 Sybase IQ3 Teradata (supports only FastExport threaded reads on z/OS and UNIX; seeTeradata documentation <strong>for</strong> details)Threaded reads work across all UNIX and Windows plat<strong>for</strong>ms where you run <strong>SAS</strong>.For details about special considerations <strong>for</strong> Teradata on z/OS, see “AutopartitioningScheme <strong>for</strong> Teradata” on page 792.Scope of Threaded Reads<strong>SAS</strong> steps called threaded applications are automatically eligible <strong>for</strong> a threaded read.Threaded applications are bottom-to-top fully threaded <strong>SAS</strong> procedures that per<strong>for</strong>m

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

Saved successfully!

Ooh no, something went wrong!