ILE C/C++ Programmer's Guide

Opening Tape Files as Record Files

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:

I/O Considerations for Record Tape Files

Using _Rfeod

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.

Using _Rfeov

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.

Blocking Record Tape Files

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.


[ Top of Page | Previous Page | Next Page | Table of Contents ]