Previous Topic: Accessing Database RecordsNext Topic: Defining a Path


Establishing an Entry Point

An entry record identifies a starting point from which to navigate the database. The record is the first record named on the PATH parameter. Each PATH parameter specified for the run must have the same entry record. In the example shown below, the EMPLOYEE record is the entry record for each PATH parameter; CA Culprit accesses an EMPLOYEE record and navigates path AA; it then navigates paths BB and CC before accessing the next occurrence of the EMPLOYEE record:

PATHAA EMPLOYEE DEPARTMENT
PATHBB EMPLOYEE COVERAGE DENTAL-CLAIM
PATHCC EMPLOYEE EMPOSITION JOB

CA Culprit accesses the entry record by using either an area sweep (that is, reading each record in the area) or by using the CALC-key, index-key, or db-key value of a field in the entry record. CA Culprit obtains these key values from either a KEY parameter or a KEYFILE parameter.