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.

Data Set Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 READ_MODE_WAIT= Data Set Option 363TABLE [valid only <strong>for</strong> DB2 under UNIX and PC Hosts, DB2 under z/OS, ODBC,Oracle, Microsoft SQL Server, Teradata]locks the entire DBMS table. If you specify READ_LOCK_TYPE=TABLE, you mustalso specify the CONNECTION=UNIQUE, or you receive an error message. SettingCONNECTION=UNIQUE ensures that your table lock is not lost—<strong>for</strong> example, dueto another table closing and committing rows in the same connection.NOLOCK [valid only <strong>for</strong> Microsoft SQL Server, Oracle, Sybase, and ODBC with theMicrosoft SQL Server driver]does not lock the DBMS table, pages, or any rows during a read transaction.VIEW [valid only <strong>for</strong> Teradata]locks the entire DBMS view.DetailsIf you omit READ_LOCK_TYPE=, you get either the default action <strong>for</strong> the DBMS thatyou are using, or a lock <strong>for</strong> the DBMS that was set with the LIBNAME statement. Seethe locking topic <strong>for</strong> your interface in the DBMS-specific reference section <strong>for</strong> details.See AlsoTo assign this option to a group of relational DBMS tables or views, see the“READ_LOCK_TYPE= LIBNAME Option” on page 176.“CONNECTION= LIBNAME Option” on page 108READ_MODE_WAIT= Data Set OptionSpecifies during <strong>SAS</strong>/<strong>ACCESS</strong> read operations whether Teradata waits to acquire a lock or failsyour request when a different user has locked the DBMS resource.Default value: LIBNAME settingValid in: DATA and PROC steps (when accessing DBMS data using <strong>SAS</strong>/<strong>ACCESS</strong>software)DBMS support: TeradataSyntaxREAD_MODE_WAIT=YES | NOSyntax DescriptionYESspecifies that Teradata waits to acquire the lock, and <strong>SAS</strong>/<strong>ACCESS</strong> waits indefinitelyuntil it can acquire the lock.NOspecifies that Teradata fails the lock request if the specified DBMS resource is locked.

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

Saved successfully!

Ooh no, something went wrong!