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

0 . Infosys Technologies Ltd 4 ER/CORP/CRS/TP01/003 Version No: 1.Evaluation Mechanism Component Project Module Test Marks 50 50 Schedule Day 6 & Day 7 Day 8 Copyright © 2005.

Suhy Galgotia Copyright © 2005. CICS using COBOL Andrew M.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..0 . Infosys Technologies Ltd 5 ER/CORP/CRS/TP01/003 Version No: 1.

References • • • • • CICS Programming Using Cobol Pseudo Conversational programming in CICS - http://kshop.infosys.ad.infosys.asp?DocNo=11074&KCURati CICS .com/asp/Search/DispDoc.ad.A Beginners guide http://kshop.ad.asp?DocNo=58693&KCURati CICS Overview and useful http://kshop.ad.asp?DocNo=7745&KCURatin Copyright © 2005.0 .asp?DocNo=6215 http://kshop.infosys.com/asp/Search/DispDoc.infosys. Infosys Technologies Ltd 6 ER/CORP/CRS/TP01/003 Version No: 1.com/asp/Search/DispDoc.com/asp/Search/DispDoc.

Introduction to CICS Day 1 .

0 . Infosys Technologies Ltd 8 ER/CORP/CRS/TP01/003 Version No: 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.

TERMINAL VTAM BTAM TCAM CICS VSAM DB2 DASD Application Programs Copyright © 2005.What is CICS? (Customer Information Control System) IBM definition: “CICS is a DB/DC control system”.0 . Infosys Technologies Ltd 9 ER/CORP/CRS/TP01/003 Version No: 1.

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 .

Infosys 11 Technologies Ltd . 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.Batch • Jobs are submitted for execution by the processor at later time • Absence of any interaction from user • Program starts.0 Copyright © 2005. 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.

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 .

0 PGM3 .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.

CICS Environment MVS OS Database Access method DL/1. Infosys 14 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1. DB2 Data Access method VSAM. BTAM DASD Terminals CICS Monitoring Services Data handling Services System Services Application Program Services Data Communication Services CICS Application Programs (COBOL.0 . Assembly) Copyright © 2005. TCAM. PL/1.BDAM Telecommunication Access Method VTAM.

What does CICS do? • • • • Telecommunication Multitasking Data access and transaction control Inter System communication Copyright © 2005.0 . Infosys 15 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.

usually Green.0 . • Examples: 1. White or Amber) 2. A CRT Monitor and 2. 3278 (Monochrome. Infosys 16 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1. A Keyboard. 3279 (7 different colours) • Has better Keyboard Layout • Keyboard could be configured for foreign languages Copyright © 2005.IBM 3270 Terminals • Mainly consists of 1.

IBM 3270 Terminals CRT Monitor Capable of displaying up to 1920 characters along 24 rows and 80 columns.0 . Copyright © 2005. Infosys 17 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.

Doesn’t allow transfer of data. Infosys 18 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.IBM 3270 Terminals Key board Aid Keys PF keys PF1 to PF24 & ENTER PA keys PA1 to PA4 & CLEAR Alphabets. Non-Aid Keys Allows transfer of data. numbers punctuation and special characters. Copyright © 2005.0 .

although several users can invoke a transaction. Infosys 19 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.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. each user initiates his own task Copyright © 2005.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.0 . Infosys 20 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.

Infosys 21 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 22 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.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.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 .

Depending on the function key populate new list. Display the records in formatted form. Read employee records from the employee file.0 . +Display records in formatted form. +Read employee records from the employee file. +Wait for the user input. Receive list screen. Third 7. Redisplay the list. Infosys Technologies Ltd • Pseudo-conversational programming Operations 1. 9. +Receive the screen. 5. 26 ER/CORP/CRS/TP01/003 Version No: 1. Receive the screen. 8. +Depending on the function key populate new list. +Wait for user input.More CICS Concepts • Conversational Operations programming +Display list screen. Copyright © 2005. Tasks First Second 4. Display list screen. 3. +Receive list screen.

Infosys 27 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1. • 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.Pseudo Conversation • Conversation – Sending a message to the terminal and receiving a response from the user is called as one conversation.0 .

Infosys 28 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.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.0 .

Infosys 29 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.

0 . Multithreading. PF. PA keys? What are transactions and tasks? What is Multitasking.Summary • • • • • • • • • • What is CICS? Why CICS in MVS? How is CICS similar to OS? What are AID. Infosys 30 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1. 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.

Thank You! Copyright © 2005.0 . Infosys 31 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.