ILE C/C++ Programmer's Guide

Opening Tape Files as Binary Stream Files

To open an iSeries tape file as a binary stream file for record-at-a-time processing, use the fopen() function with one of the following modes:

Note:
The only way to create a tape file is to use the CRTTAPF command. If you use the fopen() function and the tape file does not exist, a physical database file is created.

The valid keyword parameters are:

I/O Considerations for Binary Stream Tape Files

Blocking Binary Stream Tape Files

If your program processes tape files, performance can be improved if records are blocked.

Note:
The value you specify on the blksize parameter for the fopen() function overrides the one you specified on the CRTTAPF or CHGTAPF commands. You can still override the BLKLEN parameter with the OVRTAPF command.

If you specify 0 on either BLKLEN or blksize the system calculates a block size for you. You can specify a value on either parameter of between 0 and 32 767 characters.


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