OpenDBSolution - IMS UG Fort Lauderdale 2013


Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

OpenDBSolution - IMS UG Fort Lauderdale 2013

  1. 1. ® The Open Database Solution Suzie Wendler ( IBM – IMS ATS 1
  2. 2. Topics Open DB – Background – Components IMS Explorer – Overview – Capabilities – Examples IMS Catalog – Value and positioning What’s coming in IMS 13 2
  3. 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 3
  4. 4. Positioning the IMS Explorer Part of the IMS simplification Strategy Requirement: IMS Explorer (Eclipse) IMS Explorer for Administration (Web Browser) Developer Administrator ISPF 4
  5. 5. 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
  6. 6. 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
  7. 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 -... 7
  8. 8. 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
  9. 9. 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
  10. 10. 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
  11. 11. Displaying DB structures: Green screen vs IMS Explorer Visualize DB relationships: Physical and logical 11
  12. 12. 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
  13. 13. 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
  14. 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 14
  15. 15. Example – Creating the IMS Metadata ... 15
  16. 16. Example – Creating the IMS Metadata ... 16
  17. 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 17
  18. 18. Example – Creating the IMS Metadata... This completes the building of the metadata. 18
  19. 19. 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
  20. 20. 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
  21. 21. IMS 12 and the IMS Catalog 21
  22. 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 IMS Metadata DB Applications Type 4 Universal Drivers IMS Metadata 22
  23. 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 23
  24. 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 24
  25. 25. 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
  26. 26. 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
  27. 27. 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
  28. 28. 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
  29. 29. In the Metadata source drop down list select IMS Catalog and specify the PSB name you are querying 29
  30. 30. Ensure the Connection Parameters are correct for your to access your IMS systems 30
  31. 31. 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
  32. 32. More Information or click on IMS Enterprise Suite click on IMS Enterprise Suite Explorer for Development (IMS Explorer for Development) 32
  33. 33. 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