To connect to an IMS database using the
IMS Explorer, you must provide database metadata
that represents the target IMS database. It is recommended to use the IMS catalog or a local IMS Explorer project as the metadata source as they support
user type converters and segment mapping. Alternatively, you can generate a Java™ metadata class to
provide the application view of the IMS database, and to
develop Java applications for IMS.
The Java™ metadata class represents the application
view information specified by a program specification block (PSB) and its related program control
blocks (PCBs).To run Java applications that
access the IMS database, you must add the Java metadata class path to the classpath of the Java application.
To generate a Java metadata
class:
- Create or import a PSB and its related DBDs that define
the application view.
A Java metadata class is generated in the Project
Explorer, in a package called
IMS Universal Drivers Metadata.
Note: In
order for the metadata class to be generated, go to Windows → Preferences → IMS Explorer →
Appearance and Encodings and make sure that Generate IMS Universal drivers metadata
classes option is selected.
- Optional: You can edit the PSB and PCB statements
associated with the PSB, to support application requirements.
When you save changes in the PSB summary page or
the IMS PCB editor,
the metadata class is regenerated for the modified PSB.