Previous Topic: Use of Native VSAM Data SetsNext Topic: Suppression of Record Retrieval Locks


Record Locking

Record locks are used to protect the integrity of database records.

Share and Exclusive Locks

Record locks protect object records from concurrent access or update by other run units. Locks can be shared or exclusive:

Implicit and Explicit Record Locks

Record locks can be set implicitly by the DC/UCF central version and explicitly by the application developer, as follows:

Note: For more information about record locks, see the CA IDMS Database Design Guide.

The following conditions resulting from the use of record locks can cause abnormal termination of an CA ADS application:

Checking for Deadlock Conditions

Deadlock conditions can be checked for programmatically by using the ALLOWING clause when autostatus is enabled. The check for a deadlock condition can be made after each service request to the DBMS.

Note: For more information about record contention, see the CA IDMS Database Design Guide.

More information:

Error Handling

COMMIT