IMS Device and Data Independence for Clouds

sweetleafapartInternet και Εφαρμογές Web

7 Αυγ 2012 (πριν από 4 χρόνια και 8 μήνες)

454 εμφανίσεις

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

IMS 11 Application Programming
Model Capabilities

Kenny Blackman

kblackm@us.ibm.com

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

2

PSB

DEVICE

PAYROLL

Application program

DATA

BASE

PCB

Status Code

MASK

MASK

TP

I/O
-
ALT


PCB

Status Code

ADDRESS

NAME

IMS Device and Data Independence for Clouds


DBD

AIB

Return/Reason Code

IMS hybrid

Clouds

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

3

Application Interface Block (AIB)


An application program can refer to a PCB by a given NAME,
not an address (PCBNAME is 8 bytes).


For the I/O
-
PCB, the name is 'IOPCBbbb'


For DB
-
PCB, the name is specified in the PSBGEN:


PCBNAME=... parameter on PCB macro


LIST=Y|N
-

Display PCBNAME in PSB listing?

Most DL/I calls can be issued in two ways:

Using a PCB :

CALL xxxTDLI ( <count>,FUNC,
PCB
,I/O AREA,... )


CEETDLI

Using an AIB :

CALL AIBTDLI ( <count>,FUNC,
AIB
,I/O AREA,... )


AERTDLI


CEETDLI

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

4

RECEIVE

Lterm B

Device C

PROGRAM D

Device A

Lterm A

Device B

2 Components

Lterm A

Lterm B

Device C


PROGRAM D

I/O PCB

ALTERNATE Response PCB
LTERM=Lterm B

Conversation/Response Mode

ALTERNATE Express PCB

Modifiable ALTERNATE PCB

Alternate PCBs

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

5

IMS MPP,JMP.IFP,BMP

FORMAT

LIBRARY

FORMAT

POOL

MESSAGE

FORMAT

SERVICE

MESSAGE

QUEUE

DL/I

(DIF)

(DOF)

(MID) (MOD)

APPLICATION

PROGRAM












CALL

DIF
-

DEVICE INPUT FORMAT DOF
-

DEVICE OUTPUT FORMAT

MID
-

MESSAGE INPUT DESCRIPTOR MOD
-

MESSAGE OUTPUT DESCRIPTOR

MESSAGE FORMAT SERVICE

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

6

IMSA
-
PGMA

GU IOPCB

Process Data

ISRT ALTPCB

IMSA/IMSB(MSC)
TRANB/PGM
-
B

IMS Managed Service Flow

Program
-
to
-
Program Switch


GU IOPCB

Process data


ISRT IOPCB

Device A

UOW1

UOW2

MSG
-
Q

MSG
-
Q

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

7

IMS Java Regions



JMP same as MPP + JVM

JBP same as non
-
message driven BMP + JVM

TCP/IP or

SNA

IMS Application Server

IMS

TM

IMS JMP

Region


Java
Applicat ion

Control

Region

IMS

Connect

IMS z/OS Platform


ClassforName(DLIDriver)

get.connection(IMS psb)

Select

From

Where

Close



Java
Applicat ion


ClassforName(DLIDriver)

get.connection(IMS psb)

Select

From

Where

Close


IMS JBP

Region

DLI

/

DB2

JDBC
Drivers

JDBC
Drivers

JNI

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

8

IMS TM MPP
-

JVM

TCP/IP or

SNA

IMS Application Server

IMS

TM

IMS
MPP/IFP

Region

COBOL

Java
Applicat ion

Control

Region

IMS

Connect

IMS z/OS Platform

Server
-
Side

Presentation

Management

Server
-
Side

Business Logic


ClassforName(DLIDriver)

get.connection(IMS psb)

Select

From

Where

Close


COBOL

Java
Applicat ion


ClassforName(DLIDriver)

get.connection(IMS psb)

Select

From

Where

Close


IMS BMP

Region

DLI

/

DB2

JDBC
Drivers

JDBC
Drivers

IMS 10 Apar PK82214

LE Apar PK99010

DB2 Apar

PK93123


use ESAF no RRS


Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

9

IMS MPR








COBOL calls Java in MPR …


IMS Transaction


PSB with LANG=ASSEM


Scenario


Procedural Application Calls COBOL wrapper that calls Java

Procedural
IMS
Transaction

CALL
‘COBCALL’

Enterprise
COBOL
Module

calls Java
Class

Java Class

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

10

IMS TM Service Provider

Web Service

.NET
Client

Client
Developer

Application
developer

SAP
Client

Web
service
clients

Java/J2EE
Client

Java
dev

Java

class

Library

Direct


SOAP


IMS SOAP

Gateway

RDz

WID

RAD

IMS TM

Resource

Adapter

MFS SOA

WebSphere

IMS


Database

IMS Connect

SOAP

TCP/IP

Transaction
manager

IMS
APP

Database
manager

DLI

Model

Utility

OTMA

IMS

Universal

JDBC

Driver

IMS

JDR

Resource

Adapter

Web 2.0
Mashup

IMS

Web 2.0


WebSphere

REST Service

InfoSphere
Mashup

HTTP

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

11

IMS Connect

z/OS

IMS

CONNECT

Exit

XCF

IMS



Database

Transaction
manager

IMS APP

Database


manager

OTMA

IMS Control
Center client

IMS TM

Resource Adapter

IMS Enterprise Suite
SOAP Gateway

IMS Universal DB
Resource Adapter/

Drivers


SCI

Operations
Manager

SCI

ODBM

IMS

CONNECT

Extensions

Archive

journal

or

Print utility

IMS Performance Analyzer

IMS Problem Investigator

Active

journal

IMS Enterprise Suite
Connect API Clients

WebSphere

DataPower


Other vendor


solutions

T

C

P

/

I

P

WebSphere

Message Broker

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

12

IMSA
-
PGMA

GU IOPCB

ISRT ALTPCB

IMSA
-
PGM
-
B

WebSphere Process Server

Managed Service Flow


GU IOPCB

ISRT IOPCB

CLIENT

IMS

MSG
-
Q


WebSphere

Process Server

BPEL





SCA

Service

IMS TM

Resource

Adapter

IMS

Connect

Global Transaction


UOW1



UOW1a

UOW1b

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

14

IMS Web 2.0 …



Extends the IMS investment
by converting an IMS asset
into an IMS RESTful service,
which has the ability to
consume and be consumed
by other Web 2.0 services.


IMS feed
Inventory and
branch locations

Other
web
feed

Google

Maps

feed

-

Supports the rapid remix and
mashup of data to extend
business logic without the need
to write a single line of code.


Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

15

External Subsystem Attach Facility (ESAF)


For External Subsystems (ESS) products that want to enable
access to their data resources from IMS applications


ESAF provides for synchronization of external subsystem
data resources with IMS data resources


IMS is the recovery coordinator and is responsible for directing commit
or abort actions on behalf of its application programs


External subsystems are participants in the process and commit or
abort data updates by IMS applications

IMS TM Service Consumer

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

16

IMSA
-
PGMA

GU IOPCB


MQCONN MQ
-
B


MQPUT



MQPMO_Syncpoint

MQDISC


MB

MQGET

MQDISC


Queue

messages

WebSphere MQ via ESAF Asynchronous

CLIENT

ISRT IOPCB


UOW2

UOW1

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

17

IMSA
-
PGMA

GU IOPCB


MQCONN MQ
-
B

MQPUT NO
-
SYNCPOINT


WAIT


MQGET (
NO
)SYNCPOINT


MQDISC


MB

MQGET

MQPUT


MQDISC


Queue

messages

WebSphere MQ via ESAF Synchronous

CLIENT

ISRT IOPCB

UOW1

UOW2

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

18

IMSA
-
PGMA

GU IOPCB

EXEC SQL:

CALL PROC ( :aaa : bbb …

DB2 SP




User Defined Function
(UDF)


Web

Service

data

DB2 Stored Procedure via ESAF

Synchronous

CLIENT

ISRT IOPCB

IMS
Managed


UOW1

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

19

IMS

IMS App 1


z/OS

Initiating Client

IMS App 2

ISRT ALTPCB

Request

Response


Hold

Q


IMS

Connect

O

T

M

A

IMS

TM RA

EJB/ MDB

WebSphere Application Server

Web
Service

IMS ES
SOAP
Gateway

RYO

Asynchronous callout

OTMA

Descriptor

ISRT ALTPCB
-
> Asynchronous



IMS TM Service Consumer

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

20

Synchronous callout

IMS

IMS App

z/OS

Initiating Client

EJB/ MDB

WebSphere Application Server

Web
Service

ICAL

IMS

Connect

O

T

M

A

IMS

TM RA

RYO

IMS ES
SOAP
Gateway

OTMA

Descriptor

ICAL
-
> Synchronous

IMS TM Service Consumer

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

21

IMS DB Service Provider

Direct
Database
access
Developers

Java /J2EE
Developer

CICS
Developer

DB2
Developer

Java

class

Library

IMS


Database

IMS Connect

SQL

XQuery

DL/I

DL/I

Transaction
manager

IMS
APP

Database
manager

DLI

Model

Utility

OTMA

ODBM

IMS

Universal

JDBC

Driver

DLI

Model

Utility

DLI

Model

Utility

DB2
SP/CICS

WebSphere

IMS

Universal

DB

Resource

Adapter

IMS

Universal

JDBC

Driver

TCP/IP

DRDA

ODBA /DRA

IMS

JDR

Resource

Adapter

Web 2.0
Mashup

WebSphere

InfoSphere


Mashup

IMS

REST

Service

Adapter


DLI

Model

Utility

REST Service

HTTP

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

22

IMS Solutions for Java Development


IMS 11 Open Database APIs JDBC 3.0


IBM SDK V5 z/OS


CICS,DB2,WebSphere


IBM SDK V6 z/OS


IMS TM


IMS 9,10 Java Drivers JDBC 2.1


IBM SDK V1.3.1 IMS 9


IBM SDK V1.4.2 IMS 9


IBM SDK V5 z/OS IMS 10


M

P

P

B

M

P

I

F

P

CEETDLI Interface

JNI

Base

A

p

p

DB

JDBC / SQL

IMS Java

App

DLI

Database

View

CEETDLI Interface

JNI

Base

A

p

p

DB

JDBC / SQL

IMS Java

App

DLI

Database

View

JMP/JBP

CEETDLI Interface

JNI

Base

A

p

p

DB

JDBC / SQL

IMS Java

App

DLI

Database

View

CEETDLI Interface

JNI

Base

A

p

p

DB

JDBC / SQL

IMS Java

App

DLI

Database

View

Stored

Procedure

EJB

IMS DB

DRA

ODBA

JCICS

CEETDLI Interface

JNI

Base

A

p

p

DB

JDBC / SQL

IMS Java

App

DLI

Database

View

Java Virtual Machine

IMS

DB Resource Adapter

Universal JDBC and DL/I

Type 2 and Type 4

Java Virtual Machine

Java Virtual Machine

Java Virtual Machine

IMS

DB Resource Adapter

Universal JDBC and DL/I

Type 2 and Type 4

IMS

DB Resource Adapter

Universal JDBC and DL/I

Type 2 and Type 4

IMS

DB Resource Adapter

Universal JDBC and DL/I

Type 2 and Type 4

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

23

XML DB Highlights
-

Decomposed data



Retrieve
-

Compose XML document from
any

existing traditional
database


Insert
-

Decompose XML docs back into same DB


Same data can be read by existing IMS applications







XML Document

IMS DB

TM, CICS , WAS or DB2SP

IMS Java

Traditional DL/1

Application

HALDB, FF

or DEDB

Traditional
DB

JDBC

DL/1

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

24

XML DB Highlights
-

Intact Data



Insert/Retrieve/Delete new XML documents
INTACT

in new IMS databases


Intact data

is not expected to be understood by other IMS applications


XML Documents span IMS segments


Stored in Unicode



HALDB, FF

or DEDB

IMS XML DB











Root

Overflow

Segment
s

Index

source

Index

source

Secondary

Indexes

XML Document

IMS Java

TM, CICS , WAS or DB2SP


Intact XML


Docs

JDBC

Side Segments

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

25

Universal
DB
Resource
Adapter

JCA 1.5

WAS (any platform)

Universal Drivers

Distributed

DLI

JDBC

IMS Universal Drivers

System z

z/OS A

z/OS B

IMS DB

IMS

ODBM

IMS DB

IFL Linux

WAS/z

Universal

DB
Resource

Adapter

JCA 1.5

IMS


Connect

T

C

P

I

P

Universal

DB
Resource

Adapter

JCA 1.5

WAS

Linux z

Any Java Runtime Platform

CICS

DB2

Universal

JDBC

DLI

Universal

JDBC

DLI

IMS TM

IMS

ODBM

IMS

Appl

IMS DB

Network Clients

SNA

TCP/IP

Universal

JDBC

Type 4

Type 4

Type 4

Type 4

Type 2

Type 2

Type 2

Type 2

Type 4

Type 4

Type 4

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

26

Web 2.0


Access to IMS data


IBM Mashup Center V2.0


Enterprise Database Plugin



Allows users to create feeds from any Database that supports a
JDBC driver

>
E.g., DB2,
IMS
, Derby IDS …


IMS DB feeds require


IMS Enterprise Suite DLImodel utility


IMS version 11 Connect


IMS version 11 ODBM


Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation



Cognos Reporting & OLAP


Enterprise Reporting


Supports multiple report types: Production, Managed, Ad
-
hoc,
Financial, etc


Operates from a single metadata layer


Can be personalized and targeted


Can be distributed via email, portal, MS
-
Office, search
application and mobile device


Can assist in the management and optimization of daily
business operations


Capable of reporting on real
-
time data


Presents complex data in a business way so it is easy to
understand


Analysis



Enables the guided exploration of information that pertains to all
dimensions of your business


Moves from summary level to detail levels of information
effortlessly


Analyzes and reports against online analytical processing
(OLAP) and dimensionally aware relational sources


Gets to the “why” behind an event or action to improve business
performance.


Identifies potential problems and recognizes business trends

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

28

2
8



IMS Integration with Cognos

IMS V11 Open Database
:


IMS V11 allows distributed access over TCP/IP using the IMS Universal Database Driver
(JDBC)


IMS Connect and Open Database Manager now work together as a DRDA server for
IMS data


Shipped with IMS V11


requires System Programmer for initial setup


Windows, Linux, Unix, and zLinux

z/OS

Cognos



IMS
Universal
Database
Driver

T
C
P
I
P

T
C
P
I
P

IMS Connect

S
C
I

ODBM

S
C
I

O
D
B
A

CTL

IMS
DB

PC

IMS

TCPIP

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

30

IMS Enterprise Suite Explorer


The IMS Explorer provides support for the application
development cycle


GUI view of IMS PSB and DBD application resources


Contextual help information to reduce the development effort


Assistance for Unit Testing


Ability to access IMS data via SQL


Focus is on improving IMS application development


Simplify common IMS application development tasks



Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

31

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

32

PSB View

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

33

PCB View

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

34

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

35

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

36

DBD View

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

37

DBD View

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

38

DBD View

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

39

JDBC SQL access

Advanced Technical Skills (ATS) North America

© 2010 IBM Corporation

40

Cloud Break

Time for Java