Introduction to z/OS Basics © 2006 IBM Corporation Chapter 11: Transaction managers on z/OS.

Slides:



Advertisements
Similar presentations
MQ Series Cross Platform Dominant Messaging sw – 70% of market Messaging API same on all platforms Guaranteed one-time delivery Two-Phase Commit Wide EAI.
Advertisements

Mainframe Systems Management
SYSTEM PROGRAMMING & SYSTEM ADMINISTRATION
Operating-System Structures
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 2: z/OS Overview.
Introduction to the new mainframe: Large-Scale Commercial Computing © Copyright IBM Corp., All rights reserved. Chapter 7: Systems Management.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 15: WebSphere MQ.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 8: Designing and developing applications for z/OS.
The Architecture of Transaction Processing Systems
Click to add text Introduction to z/OS Basics © 2006 IBM Corporation Chapter 15: WebSphere MQ.
CICS Basic Commands COBOL programming statements.
CICS BMS Maps Concepts and commands.
Intro to Program Development
CICS-Dbg1 Testing and Debugging Programmers responsibility that program works correctly! Can write program incrementally You must test anything that the.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 7: Batch processing and the Job Entry Subsystem (JES) Batch processing and JES.
1 Introduction to CICS. 2 Contents Introduction History Compatibility Typical Usage Components of CICS CICS Structure – Domains CICS Management Functions.
Overview SAP Basis Functions. SAP Technical Overview Learning Objectives What the Basis system is How does SAP handle a transaction request Differentiating.
Stephen Linkin Houston Community College January 15, 2007 © Mike Murach & Associates, HCC, IBM 1 Introduction To IBM Mainframe Systems Chapter.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 7: Designing and developing applications for z/OS.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 5: Batch processing and the Job Entry Subsystem (JES) Batch.
Chapter Lead Black Slide Powered by DeSiaMore Powered by DeSiaMore.
CICS-Prg1 Terminal Handling CURSOR Positioning (in SEND MAP) IC option in DFHMDF Macro (ATTRB Parm)  If more than one – LAST position is used. DIRECT.
CICS – Mainframe (LC) 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Course Schedule Day1 - Introduction to CICS Day2.
CICS Transaction Server V3.1 © 2005 IBM Corporation Takahiro Ishiwatari CICS Integrator Adapter for z/OS.
Transaction Management Systems on z/OS. © Copyright IBM Corp., All rights reserved. Topic Objectives You should be able to: Describe the role of.
Mastering the AS/400, Third Edition, author Jerry Fottral 1 Week 2 The System The AS/400 is a multi-user, multi-tasking system -- a system on which many.
Running Work in Parallel. OS/390 is known for its strength and dependability in processing applications that solve large business problems. These are.
TPF March 12, 2009 IBM TXSeries for Multiplatforms Distributed transaction processing simplified A Technical Overview zTPF Gartner DRAFT June 2005.PPT.
Basic Mapping Support Day2 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Objectives Introduction to BMS –Screen Layout.
Components of Database Management System
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
IBM’s Customer Information Control System, CICS Art Hendela, President Hendela System Consultants, Inc. Little Falls, NJ
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
CICS-Int1 Introduction to On-Line BATCH – Transactions are accumulated into groups (batches) before processing. ON-LINE – Interactive Transactions entered.
© 2004 IBM Corporation IBM ^ z/VM Module 2: Conversational Monitor System (CMS)
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 12 Understanding database managers on z/OS.
Lead Black Slide. © 2001 Business & Information Systems 2/e2 Chapter 5 Information System Software.
IBM MAINFRAMES CICS Training Class-01.
1 Transaction Management Systems On z/OS Online Processing On The Mainframe Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM®
Database Architectures Database System Architectures Considerations – Data storage: Where do the data and DBMS reside? – Processing: Where.
Copyright © 2012 UNICOM Systems, Inc. Confidential Information z/Ware Product Overview illustro Systems International A Division of UNICOM Global.
Operating System Principles And Multitasking
Introduction Basics.
Application Program Design Day3. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Objectives Basic CICS programming –Structure.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 7: Batch processing and the Job Entry Subsystem (JES) Batch processing and JES.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 7: Batch processing and the Job Entry Subsystem (JES) Batch processing and JES.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 11 Understanding transaction managers on z/OS.
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, written in Java code, that.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 6: Using Job Control Language (JCL) and System Display and.
CICS Transaction Server V3.1 © 2005 IBM Corporation CICS Transaction Server for z/OS V3.1 Enterprise management Takahiro Ishiwatari
Integrating the Mainframe Liberating Enterprise Data.
ViaSQL Technical Overview. Viaserv, Inc. 2 ViaSQL Support for S/390 n Originally a VSE product n OS/390 version released in 1999 n Identical features.
1 Mainframe Connectivity. 2 Access to ViaSQL Access Server n ViaSQL Direct and ViaSQL Integrator n TCP/IP –easier to set up –less configurable n APPC.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 12 Transaction Management Systems on z/OS JK Old chap 10 (combo.
MQ Series Cross Platform Dominant Messaging sw – 70% of market
SAP Overview.
z/Ware 2.0 Technical Overview
Chapter 2: System Structures
Introduction to CICS Transaction Server
Introduction to Operating System (OS)
Introduction to CICS Transaction Server
Introduction of Week 3 Assignment Discussion
Our CICS Systems Company name CICS TS - Introduction Graphic
Glossary - Introduction to CICS Transaction Server for OS/390
Time Gathering Systems Secure Data Collection for IBM System i Server
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
MQ Series Cross Platform Dominant Messaging sw – 70% of market
Presentation transcript:

Introduction to z/OS Basics © 2006 IBM Corporation Chapter 11: Transaction managers on z/OS

Chapter 11 Transactional Systems © 2006 IBM Corporation 2 Chapter objectives  Be able to:  Describe the role of large systems in a typical online business.  List the attributes common to most transactional systems.  Explain the role of CICS in online transaction processing  Describe CICS programs, CICS transactions, and CICS tasks  Explain what conversational and pseudo- conversational programming is  Explain CICS and Web-enabling  Discuss the IMS components

Chapter 11 Transactional Systems © 2006 IBM Corporation 3 Key terms in this chapter  BMP  BMS  conversational  CICS TS  CICS command  IRLM  multithreading  multitasking  task/thread  region  PSB  IMS TM  transaction  unit of work  two-phase commit  wireless access point (WAP)

Chapter 11 Transactional Systems © 2006 IBM Corporation 4 CSMG

Chapter 11 Transactional Systems © 2006 IBM Corporation 5 Example of online processing: a travel agency  Mainframe applications designed for: –employee and customer information –contacts with car rental companies –hotels –airline schedules  Changes must be immediately reflected to application end-users (in real time)  Contrast with batch processing

Chapter 11 Transactional Systems © 2006 IBM Corporation 6 Example of online processing (continued)

Chapter 11 Transactional Systems © 2006 IBM Corporation 7 A practical example

Chapter 11 Transactional Systems © 2006 IBM Corporation 8 Transactional systems  Requirements: ACID  Atomicity  Consistency  Isolation  Durability

Chapter 11 Transactional Systems © 2006 IBM Corporation 9 Transactional systems: terminology  Commit and roll back  Multitasking  Multithreading  Thread  Reentrancy

Chapter 11 Transactional Systems © 2006 IBM Corporation 10 Online Systems and Operating Systems  Managing and Dispatching tasks  Controlling user access  Managing use of memory  Managing concurrency to data  Providing device independence

Chapter 11 Transactional Systems © 2006 IBM Corporation 11 Characteristics of a transactional systems

Chapter 11 Transactional Systems © 2006 IBM Corporation 12 Two-phase commit

Chapter 11 Transactional Systems © 2006 IBM Corporation 13 You can manage indoubt UOW

Chapter 11 Transactional Systems © 2006 IBM Corporation 14 What is CICS?  Customer Information Control System  Transactional subsystem of z/OS which: –run online applications –the same time, many users, same application(s) –manages the sharing of resources –integrity of data –prioritization of execution, with fast response.

Chapter 11 Transactional Systems © 2006 IBM Corporation 15 CICS in a z/OS system

Chapter 11 Transactional Systems © 2006 IBM Corporation 16 Languages & Platforms  Languages: -COBOL -OO COBOL -C -C++ -JAVA (JCICS) -PL/I -Assembler  Platforms: -zSeries (z/OS, OS/390, VSE) -Intel servers -TXSeries (AIX, HP- UX, Solaris and Windows)

Chapter 11 Transactional Systems © 2006 IBM Corporation 17 Generating a CICS Application Program Example: COBOL Translated Program Object Module Link Edit Load Module Program Library //DFHRPL DD DSN=CICSV3.SDFHLOAD1,DISP=SHR // DD DSN=CICSV3.SDFHLOAD2,DISP=SHR // DD DSN=CICSV3.ULOADLIB,DISP=SHR 1) 2) 3)

Chapter 11 Transactional Systems © 2006 IBM Corporation 18 CICS Programming roadmap  Design application  Write & test program (includes compiling)  Define program & transaction in CICS resources  Define other resources (files, queues, etc…) in CICS resources (via RDO – CEDA)  Make resources known to CICS

Chapter 11 Transactional Systems © 2006 IBM Corporation 19 CICS in one or multiple LPARS SYS 1 LPAR A LPAR B LPAR C CIC S Other Subsyst Other Subsyst Other Subsyst Other Subsyst Other Subsyst Other Subsyst CIC S * A CICS subsystem may be composed of one or more address spaces to isolate functionality, administration and throughput. As an example: - TOR = Terminal Owning Region - AOR = Application Owning Region - FOR = File Owning Region - WOR = Web Owning Region - ROR = Routing Owning region * This is a configuration known as: Multi Region Operation ( MRO ) TOR AOR FOR WOR AOR Terminals Programs Files } one address space containing all functions SYS 2 CICS ROR PPT PCT FCT TCT * CICS has strong flexibility for business configuration needs thru table definitions Inter-System Communication (ISC)

Chapter 11 Transactional Systems © 2006 IBM Corporation 20 CICS Programs, Transactions, Tasks and Tables Transaction Program Control Table (PCT) Application Program Program Processing Table (PPT) Files File Control Table (FCT) Terminals Terminal Control Table (TCT) Table Definitions are usually performed by the CICS Systems Programmer through a CICS facility called Resource Definition On-Line (RDO). It is invoke through a CICS Transaction by entering CEDA (CEDB,CEDC). **** PPT PCT FCT TCT

Chapter 11 Transactional Systems © 2006 IBM Corporation 21 Batch RDO Batch RDO

Chapter 11 Transactional Systems © 2006 IBM Corporation 22 CICS Features Transaction Driven Multitasking Multithreading Quasi-reentrant CICS

Chapter 11 Transactional Systems © 2006 IBM Corporation 23 A Task executing in Multi-Tasking Task Control Application Program(s) Basic Mapping Support File Control Program Control Temporary Storage Control Transient Data Control Journal Control (logging) Trace Control Dump Control Interval Control Storage Control

Chapter 11 Transactional Systems © 2006 IBM Corporation 24 Terminal Control uses Basic Mapping Support SEND API = displaying a screen to the terminal RECEIVE API = reading data from a screen from the terminal Example : * EXEC CICS * SEND MAP (‘ORCHM01’) * MAPSET (‘ORCHM01’) * ERASE * END-EXEC. MOVE ‘ORCHM01’ TO DFHEIV1 MOVE ‘ORCHS01’ TO DFHEIV2 CALL ‘DFHEI1’ USING DFHEIV0 DFHEIV1 DFHEIV During CICS program compile the API Commands are checked for syntax and commented out. They are then transformed into a starndard “CALL” to the CICS Stub-routines. * EXEC CICS * RECEIVE MAP (‘ORCHM01’) * MAPSET(‘ORCHM01’) * INTO (workstorage area) * END-EXEC. MOVE ‘ORCHM01’ TO DFHEIV1 MOVE ‘ORCHM01’ CALL ‘DFHEI1’ USING DFHEIV0 DFHEIV1 ….. The DFHEIVxx variables are copied in automatically by the CICS translator into WORKING STORAGE i.e. DFHEIVAR COPYBOOK

Chapter 11 Transactional Systems © 2006 IBM Corporation 25 An example of BMS map definition PRINT NOGEN ORCHM01 DFHMSD TYPE=MAP,MODE=INOUT,CNRL=FREEKB,LANG=COBOL,TIOAPFX=YES ORCHM01 DFHMDI SIZE=(24,80) DFHMDF POS=(01,01),LENGTH=01,ATTRB=(ASKIP,DRK,FSET), x INITIAL=‘1’ DFHMDF POS=(01,25),LENGTH=3,ATTRB=(ASKIP,BRT), x INITIAL=‘PURCHASE ORDER FILE INQUIRY’ DFHMDF POS(03,30),LENGTH=13,ATTRB=ASKIP, x INITIAL=‘ORDER NUMBER ’ ORDER# DFHMDF POS=(03,44),LENGTH=10,ATTRB=(NUM,BRT,IC) DFHMDF POS=(04,32),LENGTH=11,ATTRB=ASKIP,INITIAL=‘DEPARTMENT’ * DFHMSD TYPE=FINAL The MAPS are composed of three simple macros: DFHMSD – name of mapset DFHMDI – name of map identification DFHMDF – field screen definitions and location Note: You can have several maps within a mapset definition

Chapter 11 Transactional Systems © 2006 IBM Corporation 26 Conversational Pseudo-Conversational

Chapter 11 Transactional Systems © 2006 IBM Corporation 27 Conversational  Pseudo-Conversational

Chapter 11 Transactional Systems © 2006 IBM Corporation 28 CICS Programming commands  General format:  EXECUTE CICS (or EXEC CICS) + command  e.g. in COBOL:  EXEC CICS function option option... END-EXEC.  CICS command example :  EXEC CICS  READ FILE(‘ACCTFIL’) RIDFLD(ACCTC) UPDATE...  END-EXEC.

Chapter 11 Transactional Systems © 2006 IBM Corporation 29 CICS transaction flow

Chapter 11 Transactional Systems © 2006 IBM Corporation 30 CICS transaction flow (Cont…)

Chapter 11 Transactional Systems © 2006 IBM Corporation 31 CICS transaction flow (Cont…)

Chapter 11 Transactional Systems © 2006 IBM Corporation 32 CICS services for Application Programs  Application program interface: use CICS commands  Terminal control services: use Basic Mapping Support (BMS)  File & database control services: –CICS file control (mainly VSAM) –Database control (DL/I & DB2)  Other CICS Services: Task Control - Program Control - Temporary Storage (TS) & Transient Data Control (TD) - Interval Control - Storage Control - Dump & Trace Control

Chapter 11 Transactional Systems © 2006 IBM Corporation 33 Defining the screens  BMS macros: a form of assembler language  Result of an assembles : Physical Map  Physical map contains info to : – build the screen – merge variable data between program & screen – send variables back to program

Chapter 11 Transactional Systems © 2006 IBM Corporation 34 Program Control RETURN XCTL LINK LOAD RELEASE EXEC CICS LINK PROGRAM(PROGRAM-2) END_EXEC. EXEC CICS XCTL PROGRAM(PROGRAM-3) END_EXEC.

Chapter 11 Transactional Systems © 2006 IBM Corporation 35 CICS COMMUNICATION AREA (COMMAREA) This area of a program is used to pass information between other programs and transactions. It is automatically provided to you via the Translator phase In COBOL it is part of the DATA DIVISION / LINKAGE SECTION It initially provides you one byte to be used as a programming SW although it can range up to 32K bytes in size O1 DFHCOMMAREA. 05 PROCESS-SW PIC X. 88 INITIAL-ENTRY VALUE ‘0’. 88 VERIFICATION VALUE ‘1’. 05 ACCOUNT-NUMBER PIC X(10). EXEC LINK PROGRAM(ACCTPGM) COMMAREA(DFHCOMMAREA) LENGTH(11) END-EXEC. ******

Chapter 11 Transactional Systems © 2006 IBM Corporation 36 Example of CICS application user screen You can program PF, PA, CLEAR Keys to perform any transaction functionality i.e. EXEC CICS HANDLE AID PF3(EXIT-PGM)....END-EXEC.

Chapter 11 Transactional Systems © 2006 IBM Corporation 37 Example of ABEND Codes

Chapter 11 Transactional Systems © 2006 IBM Corporation 38 Language Examples

Chapter 11 Transactional Systems © 2006 IBM Corporation 39 CICS JCL Startup

Chapter 11 Transactional Systems © 2006 IBM Corporation 40 Example of CICS Startup Messages on MVS Console RDO Grouplist being loaded Good Morning Msg Storage Size acquired Java Enabled * Temp Stg. Init Type Of Startup Web Listener enabled

Chapter 11 Transactional Systems © 2006 IBM Corporation 41 Example of CICS Shutdown Message from MVS Console Closing Network No Outstanding Tasks Logs who is shutting down CICS

Chapter 11 Transactional Systems © 2006 IBM Corporation 42 Example of CICS Statistics Collected (DFHSTUP)

Chapter 11 Transactional Systems © 2006 IBM Corporation 43 CICS and Web-enabling  4 major elements of web-enabled applications:  Presentation logic  Integration logic  Business logic  Data logic

Chapter 11 Transactional Systems © 2006 IBM Corporation 44 CICS Web support

Chapter 11 Transactional Systems © 2006 IBM Corporation 45 CICS Transaction Gateway

Chapter 11 Transactional Systems © 2006 IBM Corporation 46 CICS Transaction Gateway and WebSphere Application Server

Chapter 11 Transactional Systems © 2006 IBM Corporation 47 CICS COMMANDS /DEMOS CEMT – Master Terminal Commands * INQUIRE (set file) * SET (disable a program) * PERFORM (Statistics) CECS – Command Syntax Check CECI – Command Initiation CEDF – EXECUTE DIAGNOSTIC FACILITY CEDA/B/C – Resource updating via RDO (See utility DFHCSDUP*) CEBR – Temporary Storage Browser CETR – Trace CSMG - Messages CSFE PRINT JCL SDSF * See next slide

Chapter 11 Transactional Systems © 2006 IBM Corporation 48 CECI

Chapter 11 Transactional Systems © 2006 IBM Corporation 49 CEDA

Chapter 11 Transactional Systems © 2006 IBM Corporation 50 CEDA EXPAND LIST(DFHLIST)

Chapter 11 Transactional Systems © 2006 IBM Corporation 51 CEDA Functions for Resource Definitions

Chapter 11 Transactional Systems © 2006 IBM Corporation 52 CEDA/CEDB/CEDC Summary

Chapter 11 Transactional Systems © 2006 IBM Corporation 53 The DFHCSDUP utility provides:

Chapter 11 Transactional Systems © 2006 IBM Corporation 54 Example of Terminal Interactions

Chapter 11 Transactional Systems © 2006 IBM Corporation 55 What is IMS?  Information Management System  3 components: –The Transaction Manager (TM) –the Database Manager (DB) –Set of system services, providing common services to the other 2

Chapter 11 Transactional Systems © 2006 IBM Corporation 56 IMS overview

Chapter 11 Transactional Systems © 2006 IBM Corporation 57 IMS Transaction Manager messages  Four types of messages: –Transactions –To go to another logical destination –Commands for IMS –For the IMS APPC feature to process

Chapter 11 Transactional Systems © 2006 IBM Corporation 58 Summary  Interaction with the computer happens online through the help of a transaction manager.  The continued growth of the Internet has caused many corporations to consider the best ways to make their legacy systems available to users on the Internet.  CICS is a transactional processing subsystem. CICS applications are traditionally run by submitting a transaction request.  Information Management System (IMS) consists of three components: –Transaction Manager (TM) –Database Manager (DB) –A set of system services common to both TM and DB