The UNLOCK statement releases all record locks held by the run unit for a shared input-output file.
The file to which file-name-1 refers must be in an open mode at the time the UNLOCK statement is executed.
In all record locking modes any record locks held by the run unit for file-name-1 are released upon execution of the UNLOCK statement.
If no record in the file is locked, execution of the UNLOCK statement is successful and no action is taken except for updating the file status data item.
The file position indicator is not affected by the execution of the UNLOCK statement.
The file status data item associated with the file, if one exists, is updated. The UNLOCK statement may not be used to unlock records locked by other run units. See “Record Locking” for additional information on record locking and unlocking.
UNLOCK Statement Examples
COBOL Related Interview Questions
|VSAM Interview Questions||IBM - VSAM Interview Questions|
|IBM-CICS Interview Questions||JCL Interview Questions|
|IBM DB2 Interview Questions||IBM-JCL Interview Questions|
|DB2 Using SQL Interview Questions||IBM-JCL&VSAM Interview Questions|
|IBM Mainframe Interview Questions||COBOL, CICS, JCL, VSAM, DB2 Interview Questions|
|DB2 SQL Programming Interview Questions||IMS/DB Interview Questions|
|Mainframe DB2 Interview Questions|
Procedure Division Statements
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.