Command reference / db

CLOF

Close File

Closes a database file. Works together with the Open Query File (OPNQRYF) and Open Database File (OPNDBF) commands.

Allowed environments: *ALL. Positional parameters: 1.

Parameters

OPNID Open file identifier

Specifies the name used on the OPNQRYF or OPNDBF command to identify this open operation. The name is given when closing the file and cannot be reused until the file is closed.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

Examples

CLOF OPNID(APPL)

Closes a database file that was opened with APPL as the OPNID, using OPNDBF or OPNQRYF with APPL specified or defaulted as the OPNID.

IBM command documentation

Generated from os/cl/catalog/CLOF.json and os/cl/help/CLOF.json.