To connect to an IMS™ database
using the IMS Explorer,
you must generate a Java™ metadata
class that provides the application view of the IMS database. A Java metadata
class is also required to develop Java applications
for IMS.
About this task
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.
Procedure
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 that has
the same name as the PSB.
Tip: If
you use a template to create PSB source files, you can use the
Add or Edit PSB
Template Definitions wizard
to specify a replacement character for the variable.
If the template
variable portion of the PSB name contains an illegal character, the
wizard prompts you to open the Add or Edit PSB
Template Definitions wizard
to specify a replacement character for them. (If your replacement
character is not an illegal character or to go to the wizard directly,
you can right-click your project in the Project Tree,
and click ).
- 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.