Listed here are the considerations for closing a database file
that is shared in the same job or activation group.
- The complete processing of a close operation (including releasing file,
member, and record locks; forcing changes to auxiliary storage; and destroying
the open data path) is done only when the last program to open the shared
open data path closes it.
- If the file was opened with the Open Database File (OPNDBF) or the Open
Query File (OPNQRYF) command, use the Close File (CLOF) command to close the
file. The Reclaim Resources (RCLRSC) command can also be used to close a file
opened by the OPNQRYF command when one of the following parameters is specified:
- OPNSCOPE(*ACTGRPDFN), and the open is requested from the default activation
group.
- TYPE(*NORMAL)
If one of the following parameters is specified, the file remains open
even if the Reclaim Resources (RCLRSC) command is run: - OPNSCOPE(*ACTGRPDFN), and the open is requested from an activation group
other than the default.
- OPNSCOPE(*ACTGRP)
- OPNSCOPE(*JOB)
- TYPE(*PERM)