Recovering a held optical file
This topic provides instructions on recovering a held optical file.
If a close operation fails for an open optical file and the file becomes held, the held file can be handled in one or both of the following ways:
- You can attempt a save request
- You can release the file to allow it to be opened again.
However, if the cause for the close failure has been corrected, the file can now be closed as usual, without having to save or release it first. In this situation, the file is automatically saved and released, and the held status is lifted. After releasing a held file, you can close it if the open file handle is still valid.
Before saving or releasing a held optical file, you can view all of its open instances by selecting Display Usage information from the Work with Held Files Optical Files (WRKHLDOPTF) display. This can be an important step in determining the appropriate actions for the file. For example, before deciding not to save the latest version of a file, it is useful to know if other applications have been making concurrent updates to the same file. Updates would be rolled back for all users if the file were only released and no further updates were made before the last updating application closed the file.
Parent topic:
Held optical files