CL Command Reference - OPNDBF
CL Command List > OPNDBF Reference
Description:
The Open Database File (OPNDBF) command opens a database file member. Processing of records is done later by application programs that do shared open operations.
Restrictions:
. This command is conditionally threadsafe. In multithreaded jobs, this command:
¨C Is not threadsafe for distributed files and fails for distributed files that use relational databases of type *SNA.
¨C Is not threadsafe and fails for Distributed Data Management (DDM) files of type *SNA.
¨C Is not threadsafe for logical files that require a format selector program.
Examples:
OPNDBF FILE(MASTER/PAYROLL) OPTIONS(*INP)
This command opens the first member in the file PAYROLL for input processing. The open identifier associated with this open operation has the file name as its identifier. If the file is specified as SHARE(*YES), subsequent open operations of the file PAYROLL (such as in an application program) perform more efficiently and use the same ODP.