Date post: | 18-Nov-2014 |
Category: |
Technology |
Upload: | ibm-ims |
View: | 355 times |
Download: | 0 times |
2
Topics
� Open DB
– Background
– Components
� IMS Explorer
– Overview
– Capabilities
– Examples
� IMS Catalog
– Value and positioning
� What’s coming in IMS 13
3
IMS Enterprise Suite
� IMS Enterprise Suite is a set of components that support open integration technologies to enable new application development and extend access to IMS transactions and data
– IMS Enterprise Suite Java Message Service (JMS) API
– IMS Enterprise Suite Connect APIs for Java and C
– IMS Soap Gateway
– IMS Enterprise Suite Explorer for Development
� Supports current releases of IMS
http://www-01.ibm.com/software/data/ims/soa-integration-suite/enterprise-suite/
4
Positioning the IMS Explorer
� Part of the IMS simplification Strategy
�ISPF
IMS Explorer for Administration
(Web Browser)
IMS Explorer
(Eclipse)
Developer Administrator
Requirement:
5
IMS Enterprise Suite Explorer for Development
� An Eclipse-based integrated development environment (IDE) for IMS application developers and database architects
– Can be integrated with other IBM Eclipse-based tools (RAD, RDz, IBM Data Studio...)
– Provides end-to-end application development cycle
• Supports the IMS Open DB environment
– Access to IMS databases from remote requestors using the IMS Universal Drivers
PluginA
PluginB
PluginC
IMS Explorer
6
Open DB
� To understand IMS Explorer ... some background
� Open Database Capabilities
– Supports open-standards for connectivity to online IMS databases
– Provides an environment that manages access to online IMS databases
– Provides Open Database APIs
• Ease application development access to IMS databases
The Open Database support allows access to IMS DB from
programs running not only locally to IMS (same LPAR)
But also
from programs in a different LPAR or even from
remote TCP/IP environments
7
Open DB
� Open Database consists of three components:
– Open Database Manager (ODBM)
– IMS Connect
– Open Database API and the Universal Drivers
IMS Explorer is a development environment that includes the Universal Drivers to:- Create metadata- Create queries- Test Access-...
8
Open DB...
� ODBM (Open Database Manager)
– Introduced in IMS 11
– IMS Common Service Layer (CSL) address space
• Manages connections to online IMS databases
• Can be used to reduce ODBA Client action U113 abends
• Implements the DRA interface
IMS DB
IMS
Connect
ODBM
Client
Open DBAPI client
ODBMSCI
DR
ADB
9
Open DB ...
� IMS Connect
– Provides TCP/IP access to IMS database resources
• Supports Open standard client application programming
• Supports the Distributed Relational Database Architecture (DRDA)
– Set of protocols and functions for client and database servers connectivity
• Communication protocol
• Two-Phase commit protocol
• Security (user access to the PSB)
IMS DB
IMSConnect
ODBM
Client
Open DBAPI client
ODBMSCI
DR
A
DDM
TCP/IP
DRDA / DDM DLI
DRDA application program requestor DRDA application server
DB
10
Open DB ...
� IMS Universal Drivers
– IMS Universal DB Resource Adapter
• Exploits JCA 1.5 in a Java EE (Enterprise Edition) Java
environment (e.g. in WAS), and supports JDBC SQL calls
– IMS Universal JDBC Driver
• In any Java SE (Standard Edition) environment,
supports JDBC SQL calls
– IMS Universal DL/I Driver
• Used in a Java SE environment to support DL/1 calls
Type-2
And
Type-4
11
Displaying DB structures: Green screen vs IMS Explorer
Visualize DB relationships:
Physical and
logical
12
Displaying PSB and PCB Definitions
Point and clickto select
SENSEGs
Point and clickto select
SENSEGs
Import Cobol
Copybook to expand
the field layouts
Or
Use the wizards to
define the fields
1313
Create SQL scripts with Select, Update, Delete, and Insert
statements
Create SQL scripts with Select, Update, Delete, and Insert
statements
Build a SQL statementusing the SQL Builder
with content assistance
Build a SQL statementusing the SQL Builder
with content assistance
Viewthe SQL results
Viewthe SQL results
PSB =schema
PSB =schema
DB PCB = database
DB PCB = database
Database segments =
tables
Database segments =
tables
Querying an IMS Database
14
Example – Creating the IMS Metadata
� This example shows IMS Explorer installed as a plugin to RDz but it can also be installed stand-alone or as a plug-in to other IDEs
– Wizards provide guidance
15
�
Example – Creating the IMS Metadata ...
16
Example – Creating the IMS Metadata ...
17
Example ...The Manage Fields function can be used to add more fields to the segment since only the key fields are defined. Right click on PARTROOT and select Import COBOL or PL/I Structures
18
Example – Creating the IMS Metadata...
This completes the building of the metadata.
19
Example – Querying an IMS Database
1 – Start by establishing a connection to an IMS system ….
IP and Port for IMS Connect
Point to an IMS Explorer project with the PSB that will be used to connect
to an IMS database
Create a new
connection…
20
Example – Querying an IMS Database
2 – Connect … and start querying, updating, deleting IMS data
View w/ the SQL results
SQL Builder with content assistance to build a SQL statement
Connection
PSB = Schema
DB PCB = Database
Database Segments
Here you can create SQL scripts with
Select, Update,
Delete, Insert statements
21
IMS 12 and the IMS Catalog
22
Challenges
� IMS Metadata
– Where is it deployed and where is it maintained
• Is it up to date
• Is the source trusted
• Mechanism to share, manage, and deploy is a user responsibility
IMS Explorer
Type 4
Universal
Drivers
Applications
DB
Type 4
Universal
Drivers
IMSMetadata
IMSMetadata
23
Answer
� IMS 12 Catalog ( an IMS HALDB database)
– Contains information about IMS program resources, database resources, and relevant application metadata
• Database Metadata
– describes a physical database
• Application Program Metadata
– describes application program view of the data in the database
• Arrays and Structures
• Field data types and data type conversion
• Field redefines
• Alternative Field maps for a segment
� Relies on a new ACBGEN program
• To auto-populate the catalog
� Value
• consolidates the application program data requirements into trusted location
24
Benefits
� All Universal drivers leverage the IMS catalog
– Trusted online (IMS) source for metadata used by the drivers
– Direct access to IMS metadata in the catalog
– No longer require the separate Java metadata class
• Virtual deployment support
– No longer file-system dependent for metadata
• Virtual deployment support
– Metadata is trusted and up-to-date
25
GUR
IMSMetadata
IMS Catalog Runtime
� At first access from the IMS universal drivers
– New “GUR” DL/I call
– Get Unique Record (restricted to use with IMS Catalog database_
• Functions like a GU followed by a series of GNP calls – Returns the entire database record in one call
IMS Explorer
Type 4
Universal
Drivers
Applications
DB
Type 4
Universal
Drivers
IMSMetadata
IMS
Catalog
26
DBD++ source
IMS Catalog Lifecycle
Catalog
PSB++ source
PSBLIB++
DBDLIB++
PSBGEN
DBDGEN
ACBGENIMS Explorer DFS3PU00
DB Client Route
ACBLIB++PSBLIB
DBDLIB
ACBLIB
� ACBGEN will populate ACBLIB and catalog in same UOW
• Populates ACBLIB with standard ACB info and extended info
• Populates the catalog with extended info
� Key points
• Only way to update catalog is via the Populate Utility or ACBGEN process
• Extended info stored in ACBLIB members for recoverability
• Extended info is acquired via the IMS Explorer
Populate Utility will
populate catalog from ACBLIB
2727
IMS Explorer and the IMS Catalog
� IMS Explorer can
– Access the IMS Catalog as a database
• View information (assumes user is authorized to access the DB)
– Leverage the IMS Metadata in the IMS Catalog to access IMS DBs
• View, Insert, Update, Delete (assumes user is authorized)
• No need to go through the process of creating the metadata in the IMS Explorer
– Add COBOL or PL/I metadata to the catalog
• Direct update of the catalog metadata is not available
– Requires intermediate ACBGEN to populate the catalog with the extended
information
– Edit PSBs and DBDs
• Updated DBDGEN and PSBGEN source files must be sent to the host
– Where DBDGENs and PSBGENs are run followed by an ACBGEN to populate the
IMS Catalog
28
In the Data Source Explorer, right-click the Database Connections folder, and click New.
Select IMS as the database manager and the driver name IMS 12 Universal JDBC Driver as the JDBC driver from the JDBC driver drop down list
Once the IMS Catalog has been populated,the IMS Explorer (or any application) usingthe IMS Universal Drivers can access any of the PSBs in it
29
In the Metadata source drop down list select IMS Catalogand specify the PSB name you are querying
30
Ensure the Connection Parameters are correct for your to access your IMS systems
31
To test the connection in the Data Source Explorer section underDatabase Connections, right click on the PSB
Expand the path to columns and select the table (segment)
Right click and select Data then click on return all rows to return data.
32
More Informationhttp://www-142.ibm.com/software/products/us/en/imsentesuitexpl
orwww.ibm.com/ims ����click on IMS Enterprise Suite ���� click on IMS Enterprise Suite Explorer for Development (IMS Explorer for Development)
33
What’s Coming in IMS 13
� Support for native SQL
RYO
IMS.NET
IMS DB
IMS 13
IMSJDBC
DriverODBM
IMS
Connect
IMS
Catalog
IMS
JDBCDriver
Java Enabled
Regions
Type 4
Type 2
IMS DB
IMS
Catalog
DRDADRDA
SQL
SQL
IMS
Native
SQL
support DLI
z/OS
MPP,IFP,BMP
Regions
COBOLNativeSQL