Previous Topic: Accessing Indexed RecordsNext Topic: Saving a db-key


Saving db-key, Page Information, and Bind Addresses

Retrieving a record by using its db-key is the most efficient form of retrieval. If you know that you will use a record later in your program, you should save its db-key in order to reaccess the record by using db-key retrieval. In certain circumstances a db-key used to access a record may require qualification by record type or page information. You can save page information when saving a db-key or by issuing a DML request.

For information about direct access to a record, see Accessing a Record by Its db-key.

For more information about qualifying db-keys, see DB-Keys and Page Information.

ACCEPT statements (also called save statements) transfer db-keys, page information, and storage-addresses from the DBMS to program variable storage. These statements are an efficient means of obtaining information at run time because they usually cause no database I/O.

Saving a db-key, page information and a bind address are explained below.