SAP ABAP Data Element DB2CWP4XLU (Flag if X lock is Used for Searched Update or Delete)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-DB-DB2 (Application Component) DB2 for z/OS
     STU3 (Package) Development Class for Database Monitor
Basic Data
Data Element DB2CWP4XLU
Short Description Flag if X lock is Used for Searched Update or Delete  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type DB2CHAR03L    
Data Type CHAR   Character String 
Length 3    
Decimal Places 0    
Output Length 3    
Value Table      
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short  
Medium  
Long 24 X lock for update cursor 
Heading  
Documentation

Definition

Specify the locking method used when performing a searched UPDATE or DELETE.

A value of 'No' means DB2 uses an S or U lock when scanning for qualifying rows. For any qualifying rows or pages the lock is upgraded to an X lock before performing the update or delete. For non-qualifying rows or pages the lock is released if using ISOLATION(CS). For ISOLATION(RS) or ISOLATION(RR), an S lock is retained on the rows or pages until the next commit point.

A value of 'Yes' means DB2 gets an X lock on qualifying rows or pages. For ISOLATION(CS), the lock is released if the rows or pages are not updated or deleted. For ISOLATION(RS) or ISOLATION(RR), an X lock is retained until the next commit point. A value of YES is beneficial in a data sharing environment when most or all searched updates and deletes use an index. If YES is specified and searched updates or deletes result in a table space scan, the likelihood of timeouts and deadlocks increases.

In SAP environments recommended value is 'Yes'.

Installation parameter X LOCK FOR SEARCHED U/D on panel DSNTIPI.
Its ZPARM name is XLKUPDLT in DSN6SPRM.

History
Last changed by/on SAP  20070813 
SAP Release Created in 710