You are on page 1of 31

CICS – Mainframe (LC

)

Course Schedule
• • • • • • • Day1 - Introduction to CICS Day2 - Basic Mapping Support Day3 - Application Programming Day4 – File handling and Temporary Storage Day5 - Control Operations Day6 – Project Day7 - Project
Copyright © 2005, Infosys Technologies Ltd 2 ER/CORP/CRS/TP01/003 Version No: 1.0

Pre-requisites
   

MVS and TSO/ISPF subsystem VSAM concepts OLTP concepts Programming in COBOL
Copyright © 2005, Infosys Technologies Ltd 3 ER/CORP/CRS/TP01/003 Version No: 1.0

Evaluation Mechanism
Component
Project Module Test

Marks
50 50

Schedule Day 6 & Day 7 Day 8

Copyright © 2005, Infosys Technologies Ltd

4

ER/CORP/CRS/TP01/003 Version No: 1.0

References
TITLE CICS for COBOL programmer AUTHOR Doug Lowe PUBLISHER Mike Murach & Associates

CICS Handbook

Kageyama

Tata McGraw Hill

CICS command level Programming

Alida M Jatich

John Wiley and Sons Inc.,

CICS using COBOL

Andrew M. Suhy

Galgotia

Copyright © 2005, Infosys Technologies Ltd

5

ER/CORP/CRS/TP01/003 Version No: 1.0

References
• • • • • CICS Programming Using Cobol Pseudo Conversational programming in CICS -

http://kshop.ad.infosys.com/asp/Search/DispDoc.asp?DocNo=6215

http://kshop.ad.infosys.com/asp/Search/DispDoc.asp?DocNo=58693&KCURati

CICS Overview and useful http://kshop.ad.infosys.com/asp/Search/DispDoc.asp?DocNo=11074&KCURati

CICS - A Beginners guide http://kshop.ad.infosys.com/asp/Search/DispDoc.asp?DocNo=7745&KCURatin

Copyright © 2005, Infosys Technologies Ltd

6

ER/CORP/CRS/TP01/003 Version No: 1.0

Introduction to CICS
Day 1

Objectives
• What is CICS?
– Brief History of CICS – Batch and Online Systems – CICS system components

• Basic concepts of CICS
– – – – – Concept of a transaction CICS Control Tables Concept of Multitasking, Multithreading and Quasi-reentrancy Command level and Macro level programming Conversational Vs Pseudo-conversational programming

Copyright © 2005, Infosys Technologies Ltd

8

ER/CORP/CRS/TP01/003 Version No: 1.0

What is CICS? (Customer Information Control System)
IBM definition: “CICS is a DB/DC control system”.
TERMINAL
VTAM BTAM TCAM

CICS

VSAM DB2

DASD

Application Programs

Copyright © 2005, Infosys Technologies Ltd

9

ER/CORP/CRS/TP01/003 Version No: 1.0

Brief History of CICS
• Introduced by IBM in 1968 – ran only on IBM mainframes • CICS on many platforms • Introduction of Transaction Server

Copyright © 2005, Infosys 10 Technologies Ltd

ER/CORP/CRS/TP01/003 Version No: 1.0

Batch
• Jobs are submitted for execution by the processor at later time • Absence of any interaction from user • Program starts, processes all records and ends • Performance measure is throughput • When program ABENDS it just ends the program

On-line
• Jobs submitted are executed immediately • User interaction is an usual thing • Program starts, process a record and ends • Performance measure is response time • When CICS program ABENDS it may bring down the entire system
ER/CORP/CRS/TP01/003 Version No: 1.0

Copyright © 2005, Infosys 11 Technologies Ltd

Features of CICS
• A Data Base/Data Communication (DB/DC) control system • Is a generalized transaction processing interface • Provides on-line environment in batch OS • Is an operating system in itself • Runs as a batch job within the OS/390 OS • Many languages can be used for developing CICS programs – COBOL being the most common
Copyright © 2005, Infosys 12 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0

CICS Environment
Terminals File System

OPERATING SYSTEM Batch Job1 CICS REGION PGM1 PGM2 Batch Job2 Batch Job3
Copyright © 2005, Infosys 13 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0

PGM3

CICS Environment
MVS OS
Database Access method DL/1, DB2 Data Access method VSAM,BDAM Telecommunication Access Method VTAM, TCAM, BTAM

DASD

Terminals

CICS
Monitoring Services

Data handling Services

System Services Application Program Services

Data Communication Services

CICS Application Programs (COBOL, PL/1, Assembly)
Copyright © 2005, Infosys 14 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0

What does CICS do?
• • • • Telecommunication Multitasking Data access and transaction control Inter System communication

Copyright © 2005, Infosys 15 Technologies Ltd

ER/CORP/CRS/TP01/003 Version No: 1.0

IBM 3270 Terminals
• Mainly consists of 1. A CRT Monitor and 2. A Keyboard. • Examples: 1. 3278 (Monochrome, usually Green, White or Amber) 2. 3279 (7 different colours) • Has better Keyboard Layout • Keyboard could be configured for foreign languages

Copyright © 2005, Infosys 16 Technologies Ltd

ER/CORP/CRS/TP01/003 Version No: 1.0

IBM 3270 Terminals
CRT Monitor

Capable of displaying up to 1920 characters along 24 rows and 80 columns.

Copyright © 2005, Infosys 17 Technologies Ltd

ER/CORP/CRS/TP01/003 Version No: 1.0

IBM 3270 Terminals
Key board
Aid Keys
PF keys PF1 to PF24 & ENTER PA keys PA1 to PA4 & CLEAR Alphabets, numbers punctuation and special characters.

Non-Aid Keys

Allows transfer of data. Doesn’t allow transfer of data.
Copyright © 2005, Infosys 18 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0

Some Basic Terminologies
• Task: Task is a unit of work specific to a user • Transaction: A CICS program cannot be directly invoked and is done through a transaction • Difference between transaction and task is, although several users can invoke a transaction, each user initiates his own task
Copyright © 2005, Infosys 19 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0

Some Basic Terminologies
Logical Unit of Work: A piece of work, that should be done completely or not done at all. Application: Is a collection of programs that

accomplish some specific task for the end user

Copyright © 2005, Infosys 20 Technologies Ltd

ER/CORP/CRS/TP01/003 Version No: 1.0

CICS Nucleus – Control Programs
     TCP (Terminal Control Program) KCP (Task Control Program) PCP (Program Control Program) FCP (File Control Program) SCP (Storage Control Program) and many more like TSP (Temporary Storage Program) and SIP (System Initialization Program)
Copyright © 2005, Infosys 21 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0

CICS Nucleus – Control Tables
    • • TCT (Terminal Control Table) PCT (Program Control Table) PPT (Processing Program Table) FCT (File Control Table) RCT(Resource Control Table) And many more…

Copyright © 2005, Infosys 22 Technologies Ltd

ER/CORP/CRS/TP01/003 Version No: 1.0

Inside CICS
• Starting a transaction • Flow of control during a transaction
Operating System list screen File Control Program Library

Terminal

Program EMPLIST BMS

Employee File

Copyright © 2005, Infosys 23 Technologies Ltd

ER/CORP/CRS/TP01/003 Version No: 1.0

Transaction
B021

PCT

PPT Programs PB011 PB021 PB013 Program PB011 PB021 PB031 Location In Storage On Disk In Storage

Transaction B011 B021 B031

CICS Address space

PB011 PB021

Library Load Module PB011 PB031 PB021 PB011 PB031 PB021

Copyright © 2005, Infosys 24 ER/CORP/CRS/TP01/003 Technologies Ltd Infosys Technologies Limited Version No: 1.0

CICS Concepts
• • • • • Macro level Command level Multitasking Multithreading Quasi reentrancy

Copyright © 2005, Infosys 25 Technologies Ltd

ER/CORP/CRS/TP01/003 Version No: 1.0

More CICS Concepts
• Conversational Operations programming +Display list screen.
+Wait for user input. +Receive list screen. +Read employee records from the employee file. +Display records in formatted form. +Wait for the user input. +Receive the screen. +Depending on the function key populate new list. Copyright © 2005, Infosys
Technologies Ltd

• Pseudo-conversational programming
Operations 1. Display list screen. 3. Receive list screen.

Tasks First Second

4. Read employee records from the employee file. 5. Display the records in formatted form. Third 7. Receive the screen.

8. Depending on the function key populate new list. 9. Redisplay the list.
26 ER/CORP/CRS/TP01/003 Version No: 1.0

Pseudo Conversation
• Conversation
– Sending a message to the terminal and receiving a response from the user is called as one conversation.
• Ex.: Display a menu on the screen and receive an option from the user.

• Modes of Conversation
– Conversational Mode – Pseudo-Conversational Mode – Non-Conversational Mode

Copyright © 2005, Infosys 27 Technologies Ltd

ER/CORP/CRS/TP01/003 Version No: 1.0

Advantages of Pseudo -Conversation
• Resources are best utilized (The Resources are released as soon as the program is suspended temporarily) • Looks as if it is in conversational mode • Better response time

Copyright © 2005, Infosys 28 Technologies Ltd

ER/CORP/CRS/TP01/003 Version No: 1.0

Native CICS Commands
CESN: CEDA: CICS Execute Sign ON CICS Execute Definition and Administration

CEMT: CICS Execute Master Terminal CECI: CEDF: CESF: CICS Execute Command Interpreter CICS Execute Debug Facility CICS Execute Sign OfF

CMAC: CICS Messages for Abend Codes CEBR – CICS Execute temporary storage BRowse

Copyright © 2005, Infosys 29 Technologies Ltd

ER/CORP/CRS/TP01/003 Version No: 1.0

Summary
• • • • • • • • • • What is CICS? Why CICS in MVS? How is CICS similar to OS? What are AID, PF, PA keys? What are transactions and tasks? What is Multitasking, Multithreading, Quasireentrancy? What are the ways of starting a transaction? What are the CICS tables? What is conversational and pseudo-conversational programming? What are the native CICS Commands
Copyright © 2005, Infosys 30 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0

Thank You!
Copyright © 2005, Infosys 31 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0