OpenDBSolution - IMS UG Fort Lauderdale 2013
-
Upload
ibm-ims -
Category
Technology
-
view
359 -
download
0
description
Transcript of OpenDBSolution - IMS UG Fort Lauderdale 2013
![Page 2: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/2.jpg)
2
Topics
� Open DB
– Background
– Components
� IMS Explorer
– Overview
– Capabilities
– Examples
� IMS Catalog
– Value and positioning
� What’s coming in IMS 13
![Page 3: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/3.jpg)
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/
![Page 4: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/4.jpg)
4
Positioning the IMS Explorer
� Part of the IMS simplification Strategy
�ISPF
IMS Explorer for Administration
(Web Browser)
IMS Explorer
(Eclipse)
Developer Administrator
Requirement:
![Page 5: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/5.jpg)
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
![Page 6: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/6.jpg)
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
![Page 7: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/7.jpg)
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-...
![Page 8: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/8.jpg)
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
![Page 9: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/9.jpg)
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
![Page 10: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/10.jpg)
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
![Page 11: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/11.jpg)
11
Displaying DB structures: Green screen vs IMS Explorer
Visualize DB relationships:
Physical and
logical
![Page 12: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/12.jpg)
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
![Page 13: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/13.jpg)
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
![Page 14: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/14.jpg)
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
![Page 15: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/15.jpg)
15
�
Example – Creating the IMS Metadata ...
![Page 16: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/16.jpg)
16
Example – Creating the IMS Metadata ...
![Page 17: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/17.jpg)
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
![Page 18: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/18.jpg)
18
Example – Creating the IMS Metadata...
This completes the building of the metadata.
![Page 19: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/19.jpg)
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…
![Page 20: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/20.jpg)
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
![Page 21: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/21.jpg)
21
IMS 12 and the IMS Catalog
![Page 22: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/22.jpg)
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
![Page 23: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/23.jpg)
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
![Page 24: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/24.jpg)
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
![Page 25: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/25.jpg)
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
![Page 26: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/26.jpg)
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
![Page 27: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/27.jpg)
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
![Page 28: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/28.jpg)
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
![Page 29: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/29.jpg)
29
In the Metadata source drop down list select IMS Catalogand specify the PSB name you are querying
![Page 30: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/30.jpg)
30
Ensure the Connection Parameters are correct for your to access your IMS systems
![Page 31: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/31.jpg)
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.
![Page 32: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/32.jpg)
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)
![Page 33: OpenDBSolution - IMS UG Fort Lauderdale 2013](https://reader034.fdocuments.net/reader034/viewer/2022052315/546cd254b4af9f612c8b5142/html5/thumbnails/33.jpg)
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