Close File (CLOF)

Where allowed to run: All environments (*ALL)
Threadsafe: Yes
Parameters
Examples
Error messages

The Close File (CLOF) command closes a database file. This command works in conjunction with the Open Query File (OPNQRYF) and Open Database File (OPNDBF) commands.

Top

Parameters

Keyword Description Choices Notes
OPNID Open file identifier Name Required, Positional 1
Top

Open file identifier (OPNID)

Specifies the name used on the Open Query File (OPNQRYF) command or Open Database File (OPNDBF) command for identifying this open operation. This name is specified when closing this file; you cannot reuse it without first closing this file.

This is a required parameter.

name
Specify the open file identifier.
Top

Examples

CLOF   OPNID(APPL)

This command closes a database file that was opened with APPL as the OPNID. The file was previously opened using the OPNDBF or OPNQRYF command with APPL specified (or defaulted) as the OPNID.

Top

Error messages

*ESCAPE Messages

CPF4519
Member &3 file &1 not closed.
CPF4520
No file open with identifier &4.
Top