To open an iSeries tape file as a record file, use the _Ropen() function with one of the following modes:
The valid keyword parameters are:
The _Rfeod() function is valid for files opened for input and output operations with tape record files. For input operations, it returns end-of-file and positions the tape at the last volume in the file. For output operations, it forces all unbuffered data to be written to the tape.
The _Rfeov() function is valid for tape record files opened for input and output operations. For input operations, it signals the end-of-file and positions the tape at the next volume. For output operations, any unwritten data is forced to the tape. An end-of-volume trailer is written to the tape which means that no data can be written after this trailer. Any write operations that take place after the _Rfeov() function occur on a new volume.
If your program processes tape files, performance can be improved if I/O operations are blocked. To block records, use the blkrcd=Y keyword on the _Ropen() function.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.