Previous Topic: Sample Report:  LOAD Data AreaNext Topic: LOCK


LOCK (Lock a Data Area)

The LOCK function allows you to back up a data area, specifically a compressed data area, while the Multi-User Facility is running. By granting this request, DBUTLTY inhibits an update that moves data records until the UNLOCK function is issued. See UNLOCK (Unlock a Data Area) for information.

A lock, when granted, remains in effect until an unlock is done or the Multi-User Facility is terminated. If you request a lock on an already locked area, your request waits until the first lock is released and then is granted, thereby locking the area again.

Note: Any Index Area and data area buffers with pending writes are written to DASD for the specified area when this function is executed.