Close processing for tape
When you close a tape device file, the system performs functions according to what you specify in the tape device file.
The system uses the ENDOPT parameter on a CRTTAPF, CHGTAPF, or an OVRTAPF command. The system can perform the following functions:
- The system rewinds the tape.
- The system leaves the tape as it is.
- The system rewinds and unloads the tape to remove it from the magnetic tape device.
If the tape operation ends abnormally:
- The position of the tape when you close the device file might be unchanged.
- The system might rewind the tape regardless of specified program instructions.
Parent topic:
Tape device files in high-level language programs