Previous Topic: Converting DBOMP Calls to CA IDMS/DB StatementsNext Topic: IMBSEQ macro


Converting Records Retrieved from CA IDMS/DB

The IMBSBRDG program converts retrieved CA IDMS/DB records to DBOMP records, reconstructs CA IDMS/DB records from updated DBOMP records, and returns the updated records to the database.

Converting Records

To convert records retrieved from the CA IDMS/DB database, IMBSBRDG performs the following tasks:

Reconstructing and Returning Records

To reconstruct updated DBOMP records and return them to the CA IDMS/DB database, CA IDMS DML performs the following tasks:

The following two figures illustrate how IMBSBRDG moves data between the CA IDMS logical record buffer and the work area of the DBOMP file.

Transfer from IDMS to DBOMP

The following figure shows the transfer of data from the CA IDMS/DB logical record buffer to the work area of the DBOMP file. Note that when the transfer of data takes place, the pointers already have been moved from the CA IDMS/DB dummy record to the DBOMP file work area.

Transfer from DBOMP to IDMS

This figure shows the transfer of data from the work area of the DBOMP file to the CA IDMS/DB logical record buffer. Note that pointers are not returned with record data to the CA IDMS/DB logical record buffer.

DBOMP to IDMS

Values Returned to the Calling Program

IMBSBRDG returns values to the calling program, as shown in the following table.

Values returned to:

Description of values returned

Work area prefix

  • A hexadecimal value in the error-byte field, returned after a DBOMP request:
  • 0000— Requested function performed successfully
  • 0400— File name not found in IMBSTAB
  • 0004— Process indicator not found in process indicator table
  • 0008— Invalid record at disk address (MDIR and CDIR process indicators)
  • FFFF— Failure in IMBSBRDG program
  • Current disk address, returned when a successful random read (MRAN or MRKY) has been performed
  • Current record key, returned when a successful direct read (MDIR, MRDR, CDIR, or CRDR) has been performed

Work area of the DBOMP file

A DBOMP logical record; after successful execution of a retrieval request

Currency field in IMBSEQ tables

Current address of a record retrieved by a successful execution of the ST$DA or ST$KY macro