Previous Topic: Design ConsiderationsNext Topic: Database, Work, and Map Records


Database Currencies

In CA ADS, currency is maintained automatically for the user. To facilitate this feature, a currency control block is created that maintains currency information. At runtime, a currency block is created for each dialog in the application structure that performs database requests.

Passing Currencies

Database currencies are passed from one dialog to another dialog at a lower level, enabling dialogs to continue database processing from an established position in the database. Currencies are cumulative. The currencies established by each dialog are passed to lower-level dialogs, which, in turn, establish their own currencies; the cumulative currencies are passed to the next lower-level dialog.

Currencies are established, saved, restored, and released as follows:

Note that currencies, as described in this section, pertain only to DML run units. SQL run units are not managed by the CA ADS runtime system. Please refer to the CA IDMS SQL Programming Guide for more information on SQL programming techniques.

The following table shows the ways in which the passing and receiving of control affects the contents of the currency block.

Record buffer management is affected by whether the record used by the dialog is a database, work, or map record; a logical record; or a record that has been assigned the NEW COPY attribute. The manner in which the CA ADS system allocates space for these records in the Record Buffer Block (RBB) is discussed below.