Previous Topic: Logical File Identifiers

Next Topic: Display File Information

Release File Processing Resources

The &FILE OPEN statement allocates certain resources to the requesting NCL procedure. It is not normally necessary to release file processing resources within an NCL procedure. This is performed automatically when the NCL procedure terminates.

Under certain circumstances, such as in an EASINET procedure, where there might be many concurrent users performing file processing, it might be desirable to release any file processing overheads when they are no longer required, to ensure that system overheads are minimized.

This can be accomplished using the &FILE CLOSE statement. &FILE CLOSE allows specific files or all files to be freed. When this is done, any storage associated with processing the file is released and the connection is logically severed for that user.

Having used &FILE CLOSE to release a particular file, connection can be re-established using another &FILE OPEN statement.

&FILE CLOSE destroys any generic retrieval position a user might have established within a file and any subsequent reference would have to reestablish that position if required.