• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
OpenDBSolution - IMS UG Fort Lauderdale 2013
 

OpenDBSolution - IMS UG Fort Lauderdale 2013

on

  • 270 views

 

Statistics

Views

Total Views
270
Views on SlideShare
270
Embed Views
0

Actions

Likes
0
Downloads
3
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    OpenDBSolution - IMS UG Fort Lauderdale 2013 OpenDBSolution - IMS UG Fort Lauderdale 2013 Presentation Transcript

    • ® The Open Database Solution Suzie Wendler (wendler@us.ibm.com) IBM – IMS ATS 1
    • Topics Open DB – Background – Components IMS Explorer – Overview – Capabilities – Examples IMS Catalog – Value and positioning What’s coming in IMS 13 2
    • 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/ 3
    • Positioning the IMS Explorer Part of the IMS simplification Strategy Requirement: IMS Explorer (Eclipse) IMS Explorer for Administration (Web Browser) Developer Administrator ISPF 4
    • IMS Enterprise Suite Explorer for Development An Eclipse-based integrated development environment (IDE) for IMS application developers and database architects Plugin A Plugin B Plugin C IMS Explorer – 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 5
    • Open DB To understand IMS Explorer ... some background 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 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 6
    • 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 -... 7
    • Open DB... ODBM (Open Database Manager) IMS Connect SCI ODBM ODBM DRA Open DB API client IMS DB Client DB – 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 8
    • Open DB ... IMS Connect TCP/IP DRDA / DDM IMS SCI Connect ODBM Client DRDA application program requestor ODBM DDM DRA Open DB API client IMS DB DLI DB DRDA application server – 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) 9
    • Open DB ... IMS Universal Drivers Type-2 And Type-4 – 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 10
    • Displaying DB structures: Green screen vs IMS Explorer Visualize DB relationships: Physical and logical 11
    • Displaying PSB and PCB Definitions Import Cobol Copybook to expand the field layouts Or Use the wizards to define the fields Point and click Point and click to select to select SENSEGs SENSEGs 12
    • Querying an IMS Database Create SQL scripts Create SQL scripts with Select, Update, with Select, Update, Delete, and Insert Delete, and Insert statements statements Build a SQL statement Build a SQL statement using the SQL Builder using the SQL Builder with content assistance with content assistance View View the SQL results the SQL results PSB = PSB = schema schema DB PCB = DB PCB = database database Database Database segments = segments = tables tables 13 13
    • 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 14
    • Example – Creating the IMS Metadata ... 15
    • Example – Creating the IMS Metadata ... 16
    • 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 17
    • Example – Creating the IMS Metadata... This completes the building of the metadata. 18
    • Example – Querying an IMS Database 1 – Start by establishing a connection to an IMS system …. Create a new connection … 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 19
    • Example – Querying an IMS Database 2 – Connect … and start querying, updating, deleting IMS data Here you can create SQL scripts with Select, Update, Delete, Insert statements SQL Builder with content assistance to build a SQL statement Connection PSB = Schema DB PCB = Database View w/ the SQL results Database Segments 20
    • IMS 12 and the IMS Catalog 21
    • 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 IMS Metadata DB Applications Type 4 Universal Drivers IMS Metadata 22
    • 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 23
    • 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 24
    • IMS Catalog Runtime IMS Explorer Type GUR 4 Universal Drivers IMS IMS Metadata Metadata IMS Catalog Applications DB Type 4 Universal Drivers 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 25
    • IMS Catalog Lifecycle PSB++ source Populate Utility will populate catalog from ACBLIB PSBGEN PSBLIB++ PSBLIB ACBLIB++ ACBLIB ACBGEN IMS Explorer DBD++ source DFS3PU00 DBDGEN DBDLIB++ DBDLIB Catalog DB Client Route 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 26
    • 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 27
    • Once the IMS Catalog has been populated, the IMS Explorer (or any application) using the IMS Universal Drivers can access any of the PSBs in it 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 28
    • In the Metadata source drop down list select IMS Catalog and specify the PSB name you are querying 29
    • Ensure the Connection Parameters are correct for your to access your IMS systems 30
    • To test the connection in the Data Source Explorer section under Database 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. 31
    • More Information http://www-142.ibm.com/software/products/us/en/imsentesuitexpl or click on IMS Enterprise Suite click on IMS Enterprise Suite Explorer for www.ibm.com/ims Development (IMS Explorer for Development) 32
    • What’s Coming in IMS 13 Support for native SQL IMS 13 IMS JDBC Driver MPP,IFP,BMP Regions DRDA IMS Connect DRDA IMS .NET ODBM COBOL Native SQL SQL Java Enabled RYO Type 4 Type 2 Regions IMS JDBC Driver SQL IMS Native SQL support IMS DB DLI IMS Catalog z/OS 33