Chapter 21. IMS Remote Database Services 421
input specified by utility control statements. In addition to creating the metadata class, this
utility also generates XML schemas of IMS databases. These schemas are used when
retrieving XML data from or storing XML data in IMS databases. In this section, we focus on
the metadata creation function of the DLIModel utility and provide a sample operation
procedure. For complete information about the DLIModel utility, see IMS Version 9: Utilities
Reference: System, SC18-7834.
Figure 21-7 shows the inputs and outputs from the DLIModel utility.
Figure 21-7 DLIModel utility inputs and outputs
The actions of the DLIModel utility are directed by control statements that you supply. The
control statements can specify:
Which PSB to process during a run
Aliases for the PSB, PCBs, segments, and fields
Data types and format masks for fields
XMI files that contain XMI descriptions of COBOL copybook members for segments
Additional field definitions for fields that are not defined in the DBD or the COBOL
copybook XMI file
Information that overrides PSB, DBD, and COBOL copybook XMI information
Default values for newly inserted segments
The DLIModel utility reads the PSB and DBD source members from the partition data set
(PDS) or partition data set extended (PDSE) and parses them to build an in-memory model of
the database structure and the PSB view of that structure. The utility then generates the
outputs that were requested through control statements. You can specify an XMI description
of the entire in-memory model in which one description covers the PSB and all DBDs
processed in the run. You can also request a detailed trace file of the DLIModel utility
execution if such a trace is necessary for problem resolution.
After you create a metadata class from a PSB, you can install the metadata class as a
Datasource in WebSphere Application Server environment. The relationship between
metadata class and Datasource is mapped by Java Naming and Directory (JNDI) API. A Web
application in WebSphere Application Server for z/OS or distributed platforms will use JNDI to
make the specific ODBA connection to the IMS database manager.
PSB Source
(PDS)
DBD Source
(PDS)
COBOL XMI
(PDS or HFS)
Control
Statements
DLIModel
Utility
DLIModel
Java Report
(HFS)
Trace
(HFS)
XMI
(HFS)
MetaData
Class
(HFS)
DB Connection sample of Web Application
Context ctx = new InitialContext();
DataSource dds =
(DataSource)ctx.lookup(“java:comp/env/jdbc/CustomerDBView”);
Connection con = dds.getConnection();
J2C Connection
Factory Registration
(JNDI)