Use this record-level keyword to specify that the OS/400 program is to unlock the keyboard immediately after issuing an input operation to the record format you are defining. Without the UNLOCK keyword, the OS/400 program leaves the keyboard locked after reading the data on the display. The work station user cannot key data into input-capable fields while the data that has just been read is being processed.
The format of the keyword is:
UNLOCK[(*ERASE) | (*MDTOFF)] | [(*ERASE *MDTOFF)] | [(*MDTOFF *ERASE)]
The parameter values *ERASE and *MDTOFF are optional. If you do not specify any parameter value, *ERASE is the default.
When your program sends an input operation, the following sequence of operations usually occurs:
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.