File APIs

The file APIs retrieve specific information about OS/400 files. These APIs also have the ability to get data and manipulate files.

The file APIs include the following:

With the exception of QDBLDBR, QDFRTVFD, and QSQPRCED, these APIs work with files that are either local or remote. Local files are files that are on the AS/400 system where the program is running. Remote files are files on a target (remote) system that are accessed using a distributed data management (DDM) file on a source (local) system. DDM files provide the information needed for a local system to locate a remote system and to access data in the remote system's database files. The QDBLDBR, QDFRTVFD, and QSQPRCED APIs work with local database files only.

When you are calling these APIs from your high-level language (HLL) program, you must specify whether or not to use file override processing on your local or remote files. However, the QDBLDBR, QSQPRCED, and QDMRTVFO APIs do not support overrides.

Some of the file APIs return character values that have an associated CCSID (coded character set identifier). If the CCSID value for the job calling the API is not 65535, the character values are converted from their current CCSID to the CCSID of the job. This conversion may cause some data to be lost. The CCSID associated with the job is returned to the user. If the CCSID value for the job is 65535, no conversions are performed on the character values. The character value CCSID stored in the file object is returned to the user.

The file APIs use the standard user space format for the lists of information they return. If you are not yet familiar with this format, see User Space Format for List APIs before using these APIs.

For information about the SQL call level interface API, see SQL Call Level Interface.

File Exit Programs

A database exit program provides additional (user-written) functions for the database.

Start of changeThe CLI Connection exit program is called by CLI through the registration facility before the connection is made to the relational database.End of change

The SQL Client Integration exit program enables SQL applications to access data managed by a database management system other than the OS/400 relational database.


Top | APIs by category

[Information Center Home Page | Feedback ] [Legal | AS/400 Glossary]