ILE C/C++ Programmer's Guide

Opening Diskette Files as Record Files

To open an iSeries diskette 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 Diskette Files

The _Rfeod() function is valid for diskette record files opened for input and output operations. It signals the end-of-file. For output operations, it does not write any data.

Read and Write Record Diskette Files

If you read from a diskette file, the next sequential record in the diskette file is processed. Use the _Rreadn() function for reading diskette files and the _Rwrite() function for writing to diskette files.

Blocking Record Diskette Files

If your program processes diskette files, performance can be improved if records are blocked. If you specify blkrcd=Y on _Ropen(), the system calculates a number of records to be transferred as a block to your program.


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