Record sequential files and line sequential files can be accessed faster by specifying an available range. This function is effective in the following API functions:
cobfa_wrnext()
cobfa_rdnext()
How to use
Append ",BSAM" to the file name specified for the cobfa_open() function.
fname = "file-name,BSAM";
Note
This is effective when the file organization is record sequential (FA_SEQFILE) or line sequential (FA_LSEQFILE). For file organizations other than these, an error occurs during execution of cobfa_open().
Records cannot be updated. If I-O mode (FA_INOUT) was specified as the open mode, an error occurs during the execution of cobfa_open().
If files are shared and you want to permit file sharing among different processes, all files must be in shared mode and opened with INPUT specified. Operation is not guaranteed if a file is opened without specifying INPUT. File sharing is not permitted in the same process. Operation is not guaranteed if a file is shared within the same process.
If a record read from a line sequential file includes a tab, the tab code is not replaced by a blank. If control characters 0x0C (page feed), 0x0D (return), or 0x1A (data end symbol) are included, the control characters are not handled as a record delimiter and a file terminator.