ILE COBOL Language Reference

NO REWIND Phrase (Sequential Files)

This phrase applies only to device type TAPEFILE.

The OPEN statement does not reposition

the file. The tape must be positioned at the beginning of the desired file before processing of the OPEN statement.

If the concept of reels has no meaning for the storage medium (for example, a direct access device), the REVERSED and NO REWIND phrases do not apply. When the phrases are used in this situation, a file status of 07 is set.

+-------------------------------IBM Extension--------------------------------+

The system keeps track of the current position on the tape and automatically positions the tape to the proper place. When processing a multifile tape volume, all CLOSE statements should specify the NO REWIND phrase. When the next file on the volume is opened, the system determines which direction the tape should be moved to most efficiently get to the desired file.

+----------------------------End of IBM Extension----------------------------+


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