Specifies how data in a DBMS table is locked during a Read transaction.
Valid in: | DATA and PROC steps |
Default: | DBMS-specific |
Supports: | DB2 under UNIX and PC, MySQL, ODBC, Oracle, Teradata |
locks the entire DBMS table. If you specify READ_LOCK_TYPE=TABLE, you must also specify the LIBNAME statement option CONNECTION=UNIQUE, or you will receive an error message. Setting CONNECTION=UNIQUE ensures that your table lock is not lost (for example, because of another table closing and committing rows in the same connection). This value is valid in DB2 under UNIX and PC hosts, ODBC, Oracle, and Teradata interfaces.
locks the entire DBMS view. (This value is valid in the Teradata interface.)