Opening a database file
You can use the Open Query File (OPNQRYF) and Open Database File (OPNDBF) commands to open database file members in a program.
- Opening a database file member
You can open a database file member with statements in your high-level language program. You can also use the control language (CL) open commands: Open Database File (OPNDBF) and Open Query File (OPNQRYF).
- Using Open Database File (OPNDBF) command
Usually when you use the Open Database File (OPNDBF) command, you use the default values for the command parameters. Sometimes you might want to specify particular values for some of the parameters.
- Using Open Query File (OPNQRYF) command
By using the Open Query File (OPNQRYF) command, you can open a file to a set of database records that satisfies a database query request.
Parent topic:
Processing database files