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 UPDATE_LOCK_TYPE= Data Set Option 397UPDATE_LOCK_TYPE= Data Set OptionSpecifies how data in a DBMS table is locked during an update transaction.Default value: LIBNAME settingValid in: DATA and PROC steps (when accessing DBMS data using <strong>SAS</strong>/<strong>ACCESS</strong>software)DBMS support: DB2 under UNIX and PC Hosts, DB2 under z/OS, Microsoft SQL Server,ODBC, OLE DB, Oracle, Sybase, Sybase IQ, TeradataSyntaxUPDATE_LOCK_TYPE=ROW | PAGE | TABLE | NOLOCK | VIEWSyntax DescriptionNot all values are valid <strong>for</strong> every interface. See the details in this section.ROWlocks a row if any of its columns are going to be updated. (This value is valid in theDB2 under UNIX and PC Hosts, Microsoft SQL Server, ODBC, OLE DB, and Oracleinterfaces.)PAGElocks a page of data, which is a DBMS-specific number of bytes. (This value is validin the Sybase interface.)TABLElocks the entire DBMS table. (This value is valid in the DB2 under UNIX and PCHosts, DB2 under z/OS, Microsoft SQL Server, ODBC, Oracle, and Teradatainterfaces.)NOLOCKdoes not lock the DBMS table, page, or any rows when reading them <strong>for</strong> update. (Thisvalue is valid in the Microsoft SQL Server, ODBC, Oracle, and Sybase interfaces.)VIEWlocks the entire DBMS view. (This value is valid in the Teradata interface.)DetailsIf you omit UPDATE_LOCK_TYPE=, you get either the default action <strong>for</strong> the DBMSthat you are using, or a lock <strong>for</strong> the DBMS that was set with the LIBNAME statement.You can set a lock <strong>for</strong> one DBMS table by using the data set option or <strong>for</strong> a group ofDBMS tables by using the LIBNAME option.See the <strong>SAS</strong>/<strong>ACCESS</strong> documentation <strong>for</strong> your DBMS <strong>for</strong> additional, DBMS-specificdetails about locking.See AlsoTo assign this option to a group of relational DBMS tables or views, see the“UPDATE_LOCK_TYPE= LIBNAME Option” on page 196.

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

Saved successfully!

Ooh no, something went wrong!