When backing up compressed data areas, if the area is being updated, records may move from one disk location to another and can be duplicated or lost. To prevent this from occurring, use the DBUTLTY LOCK and UNLOCK functions. The LOCK function prevents records from moving until the UNLOCK is issued. First, issue the lock, run the backup, and then issue the unlock. UPDAT requests that cause records to move wait for the unlock. See LOCK (Lock a Data Area) for more information.
This procedure assumes one Multi-User Facility that is enabled when the lock is issued. If there is more than one Multi-User Facility that can open the area for update, lock each Multi-User Facility. No protection is provided if a Multi-User Facility is disabled at the time of the lock, then subsequently enables and opens the area for update while the backup is in process.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|