Previous Topic: Retrieval FunctionsNext Topic: WITHIN SET


CALC

The FIND/OBTAIN CALC function locates a record that has been stored using the CALC location mode based on the value of its CALC key. Locating records using FIND/OBTAIN CALC is the most common method of entering the database to process a transaction.

The following figure illustrates retrieval of the BILL BALL record using its CALC key. First, we place the value of its CALC key, 8006, in the EMP-ID-0415 field of the EMPLOYEE record type then issue the OBTAIN CALC function, specifying EMPLOYEE as an argument.