i5/OS™ is shipped with held optical file support enabled. If desired, you may disable it by using the Change Optical Attributes (CHGOPTA) command.
When held optical file support is disabled, a held file is not created when a file fails to be archived to optical disk. When using this option, it is up to the user application to manage recovery procedures for files that fail to be archived. Consider the following scenarios:
Scenario 1
The application opens an optical file for a write operation, and then writes data to the file. When you attempt to close the file, it fails because the optical disk is full.
Scenario 2
The application opens an optical file for write, and then writes data to the file. The application then issues a Force Buffered Data API to ensure the data is safe on nonvolatile storage. The iSeries™ server then loses power.
It is important to note that when held optical file support is disabled, forcing data to nonvolatile storage is meaningless. This is because data is written to optical storage after the file closes successfully. The Force buffered data function will force the data to the i5/OS disk, and you can use the held optical file to recover the data after a power loss. Held files are the only mechanism to recover data forced to nonvolatile storage after a power loss or other unexpected error. Held file support is needed to recover any data from an open instance that closes unsuccessfully. This effects the following application program interfaces.
This API is allowed when held file support is disabled but it will have no effect.
This API is allowed when held file support is disabled but it will have no effect.
This value is allowed, but will be treated as an asynchronous write-through flag.
Use the CHGOPTA CL command to enable, disable or determine the current status of held optical file support. After held optical file support is disabled, it remains disabled for all optical users. You must enable held file support for it to become active again.