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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Threaded Reads 4 Summary of Threaded Reads 59thread. If three threads are specified <strong>for</strong> threaded reads, then three temporary spoolfiles are written.As the application requests subsequent passes of data, data is read from thetemporary spool files, not reread from the database. The temporary spool files can bewritten on different disks, reducing any disk read contention, and enhancingper<strong>for</strong>mance. To accomplish this, the <strong>SAS</strong> option UTILLOC= is used to define differentdisk devices and directory paths when creating temporary spool files. There are severalways to specify this option:3 In the <strong>SAS</strong> config file, add the line:--utilloc("C:\path" "D:\path" "E:\path")3 Specify the UTILLOC= option on the <strong>SAS</strong> command line:on Windows:sas --utilloc(c:\path d:\path e:\path)on UNIX:sas --utilloc ’(\path \path2 \path3)’For more in<strong>for</strong>mation about the UTILLOC= <strong>SAS</strong> option, see the <strong>SAS</strong> Language<strong>Reference</strong>: Dictionary.When Threaded Reads Do Not OccurThreading does not occur under these circumstances:3 when a BY statement is used in a PROC or DATA step3 when the OBS or the FIRSTOBS option is in a PROC or DATA step3 when the KEY or the DBKEY option is used PROC or DATA step3 if no column in the table exists to which <strong>SAS</strong> can apply the MOD function. Formore in<strong>for</strong>mation, see “Autopartitioning Techniques in <strong>SAS</strong>/<strong>ACCESS</strong>” on page 57.3 if all columns within a table to which <strong>SAS</strong> can apply the MOD function are inWHERE clauses. For more in<strong>for</strong>mation, see “Autopartitioning Techniques in <strong>SAS</strong>/<strong>ACCESS</strong>” on page 57.3 if the NOTHREADS system option is set3 if DBSLICEPARM=NONESummary of Threaded ReadsFor large reads of table data, <strong>SAS</strong> threaded reads can speed up <strong>SAS</strong> jobs. They areparticularly useful when you understand the autopartitioning technique specific to yourDBMS and use DBSLICE= to manually partition only when appropriate. Look <strong>for</strong>enhancements in future <strong>SAS</strong> releases.

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

Saved successfully!

Ooh no, something went wrong!