Lock shared data

By definition, all database files can be used by many users at the same time. However, some operations can lock the file, member, or data records in a member to prevent them from being shared across jobs.

When the file, member, or record is locked, no other job can read the same data for update operations, which keeps another job from unintentionally deleting the first job's update.

You can lock a row in iSeriesā„¢ Navigator by opening a table and editing the row you want to lock, or use the SQL LOCK TABLE statement. You can also use the following operations to lock files, members, or data records, and display locked records using the Display Record Locks (DSPRCDLCK) command or iSeries Navigator.

Related reference
LOCK TABLE