Beruflich Dokumente
Kultur Dokumente
Day 1 Session 1
Course Objectives
After completing this course you should be able to
Appreciate the salient features of CICS as a Transaction Processing system and as a DB/DC System Create user interfaces using CICS Basic Mapping Support (BMS). Access and modify VSAM files, database tables. Handle normal and abnormal CICS exception conditions. Use advanced features of CICS: Data Tables, Intercommunication, etc.
Ver 2.0
Asias Largest Global Software & Services Company
Sessions Outline
CICS Overview CICS - Application Programming Considerations CICS - Screen Handling - Basic Mapping Support CICS - Error and Exception Handling CICS - File and Database Handling CICS - Program Control CICS - Queuing Facility CICS - Interval &Task Control CICS - Testing and Debugging
Ver 2.0
Asias Largest Global Software & Services Company
Ver 2.0
Asias Largest Global Software & Services Company
CICS - Overview
Session 1
Ver 2.0
Asias Largest Global Software & Services Company
Session 1 : Objectives
To Understand the
Business requirements for an online transaction processing
environment
Features and Strengths of CICS CICS Interface and Languages available to access CICS CICS Concepts and Terminologies Transaction Flow
Ver 2.0
Asias Largest Global Software & Services Company
Online System
Online System
Terminals
Batch System
REPORTS VSAM / DATABASE
MASTER FILE
Ver 2.0
Asias Largest Global Software & Services Company
An Online System
ONLINE processing allows a user to interact with a
Ver 2.0
Asias Largest Global Software & Services Company
What is CICS ?
Stands for Customer Information Control System A world-class transaction processing system - by IBM in
1960s Availability
Four versions in OS/390, CICS Transaction server 2.1 in z/OS AS/400, RISC/6000 & OS/2 PC Servers
Provides an interface between application programs and operating system services, such as data access and communication access
Ver 2.0
Asias Largest Global Software & Services Company
CICS Interface
Ver 2.0
Asias Largest Global Software & Services Company
CICS Concepts
CICS runs as a batch job and can handle hundreds of interactive users that are using a variety of applications More than one CICS system (or region) can run on the same computer at the same time. Programs running in one region do not interfere with programs running in another region
Ver 2.0
Asias Largest Global Software & Services Company
code called Transaction-identifier Application programs are associated with a transaction which when invoked starts a Task A task is the execution of an application program for a specific user
Several users may invoke the same transaction, with each given a separate task
Ver 2.0
Asias Largest Global Software & Services Company
TASK 2
TXNA working storage for task 2
TASK 1 started at terminal1 by user1 executes TXNA. TASK 2 started at terminal2 by user2 executes the same TXNA. These two tasks use the same load module associated with TXNA. However, the working storage for each task is different.
Ver 2.0
Asias Largest Global Software & Services Company
Reentrancy of programs providing separate copy of working storage for each Task
Quasi-re-entrant Priority handling
Ver 2.0
Asias Largest Global Software & Services Company
Ver 2.0
Asias Largest Global Software & Services Company
Assembler language
Fairly popular till 1970s
PL/I
Alternative to COBOL in 1970s & 1980s
C and C++
Object oriented classes can be developed that access CICS services
Java
Newest language for writing CICS applications Object oriented classes can be developed that access CICS services
Ver 2.0
Asias Largest Global Software & Services Company
CICS System
Operating System ( MVS/ESA)
Database Access Method (DL/I, DB2)
Data Access (VSAM/ BDAM )
Other systems
Telecommunication Access method (VTAM,TCAM,BTAM)
Data Storage
CICS/MV S
Data handling functions System services Data Monitoring functions communication Application program functions services
Terminal
Ver 2.0
Asias Largest Global Software & Services Company
Ver 2.0
Asias Largest Global Software & Services Company
each task
All the updates made by the task so far will be committed All the resources maintained by the dynamic log will be
released
Ver 2.0
Asias Largest Global Software & Services Company
BMS
Interface between the application program and the terminal
screen maps
Provides format independence which simplifies
Ver 2.0
Asias Largest Global Software & Services Company
Ver 2.0
Asias Largest Global Software & Services Company
Transaction Types
Conversational Program
Program (transaction) remains idle when waiting for user response Program, data areas, control blocks remain in main storage resulting in high virtual storage utilization
Pseudo-conversational Program
Program ends after it sends data to a terminal Program is in storage only when processing data, otherwise storage released for other transactions/tasks.
Ver 2.0
Asias Largest Global Software & Services Company
Ver 2.0
Asias Largest Global Software & Services Company
Ver 2.0
Asias Largest Global Software & Services Company
Ver 2.0
Asias Largest Global Software & Services Company
EXEC CICS SEND SEND MAP(map_name) MAPSET(mapset_name) FROM(data_area) END_EXEC. IF CONVERSATION-TYPE = CONVERSATIONAL THEN EXEC CICS RECEIVE MAP(map_name) MAPSET(mapset_name) INTO(data_area) END_EXEC END-IF EXEC CICS RETURN TRANSID(txn_name) END_EXEC.
Ver 2.0
Asias Largest Global Software & Services Company
Ver 2.0
Asias Largest Global Software & Services Company
CIC S
Ver 2.0
Asias Largest Global Software & Services Company
Mapping Support, terminal control provides an application program, the ability to communicate with a terminal
Ver 2.0
Asias Largest Global Software & Services Company
Task control validates transactions by checking the Program Control Table (PCT) Task is created after the transaction is validated Concurrent processing of more than 1 task is possible (multitasking) Error message is sent to the terminal by task control for an invalid transaction
Ver 2.0
Asias Largest Global Software & Services Company
Task Control passes control to Program Control, which keeps track of the location of every application program The Processing Program Table (PPT) contains the program size, program source language, and other program information Stores the program library address the first time to make subsequent loading of program faster
Ver 2.0
Asias Largest Global Software & Services Company
issues commands to request services that are needed in performing the function of the application
Ver 2.0
Asias Largest Global Software & Services Company
The application program issues a command to retrieve a record from a VSAM file VSAM/(B)DAM are the only files used in CICS and they should be defined in the File Control Table (FCT) For access to relational database as DB2, define the attachment to DB2 in the Resource Control Table (RCT)
Ver 2.0
Asias Largest Global Software & Services Company
Journal Control
The Journal control facility automatically logs the changes on the system log, when an application changes record in a file System log defined in the Journal Control Table (JCT) enables CICS to back-out changes when a task fails Maximum of 99 journals
Ver 2.0
Asias Largest Global Software & Services Company
Trace Control
Tracing is a CICS debugging aid CICS can write trace entries in a Trace Table (TRT)
Execute Diagnostic Facility (EDF) is another feature that enables interactive debugging
Command Interpreter (CECI) allows a programmer to enter and test CICS commands at the terminal directly
Ver 2.0
Asias Largest Global Software & Services Company
Dump Control
In case of serious error
Controls storage of data in main storage or on disk for later retrieval Records can be retrieved in the same sequence in which they are stored Records reside in Temporary Storage Queue (TSQ) unless deleted or when CICS closes Temporary Storage Table (TST) is required for recovery purpose
Ver 2.0
Asias Largest Global Software & Services Company
sequential queue
The Destination Control
of queue:
Intra-partition transient data Extra-partition transient data
Ver 2.0
Asias Largest Global Software & Services Company
RETURN command
All storage associated will be released Other tasks can use the storage just released
Ver 2.0
Asias Largest Global Software & Services Company
Starting a TASK
TXN1
PCT Trans. TXC1 TXC2 TXN1 TXN2
MAPPGC1
TXNPGM1
Ver 2.0
Asias Largest Global Software & Services Company
Systems Programmer
IT Management
Application Programmer
Ver 2.0
Operators (Administrators)
Session 1: Summary
Overview of Online transaction processing environment CICS Terms and Definitions Transaction, task, LUW, conversational and pseudo-conversational style CICS control programs and control tables CICS System Responsibilities
Ver 2.0
Asias Largest Global Software & Services Company
References
Yukihisa Kageyama, CICS Handbook, McGraw Hill Book Co.