Customer Information Control System
Customer Information Control System
1
Table of Contents
• Introduction to CICS
• Basic Mapping Support
• Program Control
• File Control
• Queues
• Interval and Task Control
• Recovery and restart
• Program preparation
• CICS Supplied Transactions
• Screen Definition Facility
2
Introduction to CICS
3
Introduction
• Customer Information Control System -CICS
developed in late 1960s as a DB/DC control
system
• CICS provides an interface between the
Operating System and application programs
• Macro Level CICS - initial version Assembler
macro to request CICS services
• Command Level CICS - high level lang.version
- commands to request CICS services - Single
command can replace series of macros 4
CICS History
• 1968 - Package developed by Michigan
Bell and IBM on OS/360
• 1971 - CICS available for DOS & DOSE
• 1973 - Development moved to Hursley,
England
• 1987 - CICS/VM introduced
• 1992 - CICS/400 version for AS/400
• 1996 - CICS Web Interface Product
5
CICS Hardware &
Operating Systems
• IBM zSeries 900 - z/OS
• IBM S/390 - OS/390, MVS, VSE
• IBM AS/400 - OS/400
• IBM RS/6000 - AIX (Unix)
• PC Server - Windows NT/2000, OS/2
• The most popular is the S/390 using
OS/390 or MVS
6
Batch & Online :
Differences
• BATCH SYSTEM • ONLINE SYSTEM
1. Input data is prepared 1. Data is entered as
and given in sequence needed not in sequence
(file) (terminal)
2. Processing sequence is 2. Since processing seq. is
predictable and hence unpredictable, special
restarting the process in recovery/restart proc. is
case of failure is easy. reqd. in case of failure.
3. Programs and files can’t 3. Programs and files can
be shared be shared
4. Programs are scheduled 4. Transaction can be run
through jobs at any time 7
CICS & Operating System
Operating System
CICS
Enter Code :
User’s Files &
App.Prg Database
8
DB/DC System
Terminals
Data
Base
Central System
9
CICS System Services
• Data-Communication Functions
• Data-Handling Functions
• Application Program Services
• System Services
• Monitoring Functions
10
CICS Service Diagram
CICS OS/390
VSAM File Control
Terminal Basic
Control Mapping Maps
Support
(VTAM,SNA,TCP/IP)
11
Terminal User
Task &Transaction
• Task :- A basic unit of work which is
scheduled by the
operating system or CICS
Ex -Read from and write to the terminal
• Multitasking
• Multithreading
• Quasi-Reentrancy
13
Terminal Conversation
• Conversational : A mode of dialogue between program
and terminal based on a combination of sending
message and receiving message within the same task
– Since human response is slower than the CPU
speed, a significant amount of resource will be
wasted just waiting
16
CICS Components
• Control Programs (or Management Modules)
Programs that interface between OS and app. pgm
Handle the general functions that are crucial to operation
of CICS
• Control Tables
Define the CICS environment
Functionally associated with the management module
19
Topics in BMS
• Introduction to BMS
• Physical and Symbolic Map
• Map and Mapset
• Map Definition Macros
• Screen Manipulation/Handling
• Screen Design Considerations
• Interfacing with Terminal using a Map
20
Introduction to BMS
• Primary functions of BMS
– Removal of device dependent codes from Application
Program
– Removal of constant information from Application
program (Headers, Titles...)
– Construct NMDS - Native Mode Data Stream
– Text handling
– Terminal Paging & Message routing
– Contents of the screen defined thru’ BMS is called Map.
– Map is a program written in assembly language.
– BMS macros are available for Map coding.
21
Map and Mapset
• Representation of one screen format is called
Map (screen panel).
• One or more maps, linkedited together, makes
up a Mapset (load module).
• Mapset must have a entry in PPT
• Mapset name has two parts.
– Generic name 1- 7 chars. Used in App. Pgm.
– Suffix 1 char. To identify the device type
• Multimap Panel
• Dynamically constructing a screen panel with
multiple maps at the execution time
22
Types of MAPS
There are 2 types of MAPS
• Physical Map
Physical Map is a map used by CICS ( CSECT)
Ensure device independence in the application program
• Symbolic Map
Ensure device and format independence in the app prog
Symbolic Map is a map used by Application Program
(DSECT)
23
Example Of Symbolic Map
01 EMPRECI.
02 FILLER PIC X(12).
02 EMPNAL PIC S9(4) COMP.
02 EMPNAF PIC X.
02 FILLER REDEFINES EMPNAF.
03 EMPNAA PIC X.
02 EMPNAI PIC X(21).
Physical MAP
Symbolic MAP
Linkage editor
25