── LOCK ── ( ── <file identifier> ── ) ────────────────────────────────┤
Explanation
The LOCK statement closes and locks the specified file and the file is released. The file buffer areas are returned to the system. The logical file is no longer assigned to the physical file. If the file is a tape file, the tape is rewound and unloaded. If the file is not a disk file, the unit is made inaccessible to the system and must be readied again manually. If the file is a disk file, it is kept as a permanent file on disk.
Example
The following is an example of the LOCK statement:
LOCK (F1)