Considerations
When an application thread contains dialogs that use a combination of database records and logical records, special considerations apply with respect to record buffer management. For each database record component of a logical record, CA ADS initializes individual, contiguous record buffers. The logical record components are placed in the buffer in the order named in the logical record definition.
For example, consider the EMP-JOB-LR logical record, which consists of four database records: EMPLOYEE, DEPARTMENT, JOB, and OFFICE records. If dialog B accesses EMP-JOB-LR, CA ADS initializes new record buffers for each of the four records listed above (in that order) regardless of whether buffers for one or more of the records were initialized when dialog A, a higher-level dialog, began executing. Therefore, dialog B (and lower-level dialogs accessing the same logical record) does not have access to data established in the record buffer by dialog A. However, dialogs at levels lower than dialog B will use the buffers established by dialog A if those dialogs use the same database records as dialog A.
When using both database records and logical records, the first dialog of the application thread should include an INITIALIZE command for the logical record. This action associates the logical record with the top-level dialog and ensures that the buffer for the entire logical record will be allocated and available to all lower-level dialogs. Lower-level dialogs will use the component record buffers established at the highest level unless the logical record itself is referenced.
|
Copyright © 2013 CA.
All rights reserved.
|
|