ILE COBOL Language Reference

CLOSE Statement Considerations

A CLOSE statement may be executed only for a file in an open mode. After successful execution of a CLOSE statement without the REEL or UNIT phrase:

The following considerations apply to the use of the CLOSE statement:

WITH LOCK Phrase

COBOL ensures that this file cannot be reopened by this COBOL program during this processing of the program. External files closed WITH LOCK cannot be opened again within the run unit. This includes any other programs that have defined the external file.


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