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.
Procedure
- Import the com.ibm.ims.dli package that contains the IMS Universal DL/I driver classes, interfaces, and methods.
- Connect to an IMS database subsystem.
- Obtain a program specification block (PSB), which contains one or more PCBs.
- 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.
- Obtain an unqualified segment search argument list (SSAList) of one or more segments in the database hierarchy.
- Add qualification statements to specify the segments targeted by DL/I calls.
- If retrieving data, mark the segment fields to be returned.
- Execute DL/I calls to the IMS database.
- Handle errors that are returned from the DL/I programming interface.
- Disconnect from the IMS database subsystem.