Skip to content

Unlock

See Also: Transactions and DDOs, Lock, Reread

Purpose

In a multi-user environment, the Unlock command ends the locked state of all database files imposed by the Lock and Reread commands. This command is usually not used when working with Data Dictionaries.

Syntax

unlock

What It Does

The Unlock command restores database files to a normal (unlocked) state after a Lock or a Reread command.

reread
increment vendor.counter
save vendor
unlock

An Unlock is required after every Lock or Reread command, and commands requiring keyboard input must not be placed between the Lock or Reread and its Unlock.

Notes

  • Files are unlocked in the reverse order of their numbers in the file list.
  • Where a program has more than one Lock or Reread command in effect at the same time, a separate Unlock command must be provided for each such Lock and Reread.