The IMS Universal JDBC driver is normally used to provide an interface for an application program to make SQL queries to get IMS data. However, you can also cast to DL/I objects from the JDBC interface. You might want to use this approach if you want to reuse a known-good DL/I call in a new application context, or if you want to obtain maximum performance for a simple query.
This example demonstrates how to make the cast to the DL/I driver and obtain data. This example accesses a JDBC connection from a JNDI datasource that was created in a JEE server with the IMS Universal Database Resource Adapter.