Basic steps in writing a IMS Universal DL/I driver application

In general, to write a application program with the IMS Universal DL/I driver, you need to complete the following tasks.

To write an IMS Universal DL/I driver application, follow these steps.

Procedure

  1. Import the com.ibm.ims.dli package that contains the IMS Universal DL/I driver classes, interfaces, and methods.
  2. Connect to an IMS database subsystem.
  3. Obtain a program specification block (PSB), which contains one or more PCBs.
  4. Obtain a PCB handle, which defines an application's view of an IMS database and provides the ability to issue database calls to retrieve, insert, update, and delete database information.
  5. Obtain an unqualified segment search argument list (SSAList) of one or more segments in the database hierarchy.
  6. Add qualification statements to specify the segments targeted by DL/I calls.
  7. If retrieving data, mark the segment fields to be returned.
  8. Execute DL/I calls to the IMS database.
  9. Handle errors that are returned from the DL/I programming interface.
  10. Disconnect from the IMS database subsystem.