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 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 ER/CORP/CRS/TP01/003 Version No: 1.0 Evaluation Mechanism Component Marks Schedule Project Module Test 50 50 Day 6 & Day 7 Day 8 Copyright © 2005, ‹#› Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 References TITLE AUTHOR PUBLISHER CICS for COBOL programmer Doug Lowe 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 ER/CORP/CRS/TP01/003 Version No: 1.0 References • CICS Programming Using Cobol - http://kshop.ad.infosys.com/asp/Search/DispDoc.asp?DocNo= 62157&KCURating=5.4&ContentType=BOK • • Pseudo Conversational programming in CICS http://kshop.ad.infosys.com/asp/Search/DispDoc.asp?DocNo=58693&KCU Rating=5.4&ContentType=InternalTutorial • CICS Overview and useful http://kshop.ad.infosys.com/asp/Search/DispDoc.asp?DocNo=11074&KCU Rating=8.27&ContentType=BOK • CICS - A Beginners guide http://kshop.ad.infosys.com/asp/Search/DispDoc.asp?DocNo=7745&KCU Rating=7.78&ContentType=ExternalTutorial Copyright © 2005, ‹#› Infosys Technologies Ltd 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 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 VSAM CICS DB2 TCAM Application Programs Copyright © 2005, ‹#› Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 DASD 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 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Batch On-line • 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 • 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 Copyright © 2005, ‹#› Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 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 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 CICS Environment File System Terminals OPERATING SYSTEM Batch Job1 CICS REGION PGM1 PGM2 PGM3 Batch Job2 Batch Job3 Copyright © 2005, ‹#› Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 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 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 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 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 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 IBM 3270 Terminals Key board Aid Keys Non-Aid Keys PF keys PA keys PF1 to PF24 & PA1 to PA4 & ENTER CLEAR Alphabets, numbers punctuation and special characters. Allows transfer of data. Doesn’t allow transfer of data. Copyright © 2005, ‹#› Infosys 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 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 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 CICS Nucleus – Control Programs 1. 2. 3. 4. 5. 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 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 CICS Nucleus – Control Tables 1. 2. 3. 4. 5. 6. 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 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Inside CICS • Starting a transaction • Flow of control during a transaction Operating System Program File list screen Library Control Terminal Program EMPLIST Employee File BMS Copyright © 2005, ‹#› Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Transaction B021 PCT Transaction B011 B021 B031 PPT Programs PB011 PB021 PB013 CICS Address space Program PB011 PB021 PB031 Location In Storage On Disk In Storage PB011 PB021 Copyright © 2005, ‹#› Infosys Technologies Ltd Infosys Technologies Limited Library Load Module PB011 PB031 PB021 PB011 PB031 PB021 ER/CORP/CRS/TP01/003 Version No: 1.0 CICS Concepts • • • • • Macro level Command level Multitasking Multithreading Quasi reentrancy Copyright © 2005, ‹#› Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 More CICS Concepts • Pseudo-conversational programming • Conversational programming Operations Tasks 1. Display list screen. 2. Wait for user input. Operations First 1. Display list screen. Second 3. Receive list screen. 3. Receive list screen. 4. Read employee records from the employee file. 4. Read employee records from the employee file. 5. Display records in formatted form. 5. Display the records in formatted form. 6. Wait for the user input. Third 7. Receive the screen. 8. Depending on the function key populate new list. 7. Receive the screen. 8. Depending on the function key populate new list. 9. Redisplay the list. 9. Redisplay the list. Copyright © 2005, ‹#› Infosys Technologies Ltd 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 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 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Native CICS Commands CESN: CICS Execute Sign ON CEDA: CICS Execute Definition and Administration CEMT: CICS Execute Master Terminal CECI: CICS Execute Command Interpreter CEDF: CICS Execute Debug Facility CMAC: CICS Messages for Abend Codes CESF: CICS Execute Sign OfF CEBR – CICS Execute temporary storage BRowse Copyright © 2005, ‹#› Infosys 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 Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Thank You! Copyright © 2005, ‹#› Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0