UNLOCK (Unlock a Data Area or Release a Record)
Free-Form Syntax | UNLOCK{(E)} name |
Code | Factor 1 | Factor 2 | Result Field | Indicators | ||
---|---|---|---|---|---|---|
UNLOCK (E) | name (file or data area) | _ | ER | _ |
The UNLOCK operation is used to unlock data areas and release record locks.
To handle UNLOCK exceptions (program status codes 401-421, 431, and 432), either the operation code extender 'E' or an error indicator ER can be specified, but not both. For more information on error handling, see Program Exception/Errors.
Positions 71,72,75 and 76 must be blank.
For further rules for the UNLOCK operation, see Data-Area Operations.