These topics discuss how to make your database files process more
efficiently on the i5/OS™ operating system, how to open, manipulate, and
close database files, and how to monitor and manage error messages related
to your database files.
Open a database file
These topics describe how to use the Open Query File (OPNQRYF) and Open Database File (OPNDBF) commands to open database file members in a program. Examples, performance considerations, and guidelines for writing a high-level language program are included. Typical errors that might occur are also discussed.
Close a database file
When your program completes processing a database file member, it should close the file. Closing a database file disconnects your program from the file.
Monitor database file errors in a program
When your database applications perform actions on your database files, you should monitor messages about file errors that the program detected so that you can take the proper actions to prevent the errors.