Previous Page | Next Page

Threaded Reads

Two-Pass Processing for SAS Threaded Applications

Two-pass processing occurs when a SAS Teradata requests that data be made available for multiple pass reading (that is, more than one pass through the data set). In the context of DBMS engines, this requires that as the data is read from the database, temporary spool files are written containing the read data. There is one temporary spool file per thread, and each spool file will contain all data read on that thread. If three threads are specified for threaded reads, then three temporary spool files are written.

As the application requests subsequent passes of data, data is read from the temporary spool files, not reread from the database. The temporary spool files can be written on different disks, reducing any disk read contention, and enhancing performance. To accomplish this, the SAS option UTILLOC= is used to define different disk devices and directory paths when creating temporary spool files. There are several ways to specify this option:

For more information about the UTILLOC= SAS option, see the SAS Language Reference: Dictionary.

Previous Page | Next Page | Top of Page