Previous Topic: Programming in the CA IDMS EnvironmentNext Topic: SQL DML


Navigational DML

Navigational DML statements allow you to access database records and sets one record at a time, and to check and maintain currency in order to assure correct results. Navigational DML statements give you control over error checking and flexibility in choosing database access strategy. To use this type of DML statement, you must have a thorough knowledge of the database structure. For an Example of a data structure diagram, see Sample Programs and Database Definition.

Navigational DML statements provide:

There are four types of navigational DML statements:

Example of Navigational DML Statements

The following figure illustrates a database structure containing two owner records (EMPLOYEE and JOB) that share one member record (EMPOSITION), and lists the statements used to find employee and job information. To obtain EMPLOYEE and JOB information, you would retrieve an EMPLOYEE record, the first EMPOSITION record in the EMP_EMPOSITION set, and the owner record in the JOB_EMPOSITION set.