100% found this document useful (1 vote)
193 views

Cics Day-I

cics day-1

Uploaded by

chinu267
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
193 views

Cics Day-I

cics day-1

Uploaded by

chinu267
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 35

What is CICS?

(Customer Information Control System)


IBM definition: CICS is a DB/DC control system. A Data Base/Data Communication (DB/DC) control system

TERMINAL
VTAM BTAM TCAM Application Programs

VSAM

CICS
DB2

DASD

DSSD : terminals, disk drives, tape drives

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)

CICS Environment
Terminals File System

OPERATING SYSTEM Batch Job1 CICS REGION PGM1 PGM2 Batch Job2 Batch Job3 PGM3

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

Batch Processing
Input given through sysin or files Time taken for processing (number of days) Resource utilization is less Threads : Single thread Entrance : no reentrant Output : sysout , file or printer Example : Bill processing , payroll processing ,inventory

Online processing
Terminals Seconds More resource utilization Multiple threads It allows quasy reentrance Terminals or local printers ATM,ticket reservation system

IBM 3270 Terminals


Mainly consists of

1. A CRT Monitor and


2. A Keyboard.

IBM 3270 Terminals


CRT Monitor

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

IBM 3270 Terminals


Key board
Aid Keys
PF keys PF1 to PF24 & ENTER PA keys PA1 to PA4 & CLEAR

Non-Aid Keys
Alphabets, numbers punctuation and special characters.

Allows transfer of data. Doesnt allow transfer of data.

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 Application: Is a collection of programs that accomplish some specific task for the end user

CICS Control Programs


TCP (Terminal Control Program) KCP (Task Control Program) PCP (Program Control Program) FCP (File Control Program) SCP (Storage Control Program) Other programs: TSP (Temporary Storage Program) SIP (System Initialization Program)

CICS 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

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

Transaction
B021

PCT

Transaction B011 B021 B031

Programs PB011 PB021 PB013

PPT Program PB011 PB021 PB031

Location In Storage On Disk In Storage

CICS Address space

PB011 PB021

Library Load Module PB011 PB031 PB021 PB011 PB031 PB021

Management Module in CICS


File Control Management Modules Terminal Control Program Managemnt Module(TCP) Program Control program management Module(PCP) Task Control Program management module(KCP) Storage Control Program Management Module(SCP) Interval Control Module Journal Control Module(JCT)

File Control Program


Manages the file processing activities of each application program. Command level CICS COBOL program does all file processing through CICS file control request.Facilities like OPEN,CLOSE READ, WRITE is not allowed FCT includes the entry for eacj file that is to be used during the operation of CICS.

CICS Concepts
Macro level Command level Multitasking Multithreading Quasi reentrancy

Multiprogramming
Multiprogramming means that the operating system allows several programs to execute at the same time. Only one program can have the control of the CPU.

Multitasking
Multitasking is similar to mutiprogramming Mutitasking means that a program running in a single partition or region allows multiple tasks to execute simultaneously.

Example
User 1 Order entry User 2 Customer enquiry User 3 Order enter User 4 Inventory Inquiry User 5 Customer file maintenance User 6 Order entry

User 1 , user 3 and user 6 are accessing the same application : order entry This would waste valuable storage space if the same program were loaded into storage Multithreading is used so that only one copy of the program is loaded in to the storage.

Quasi re-entrant
For Multithreading to work a program must be re-entrant.

Conversational programming
Operations 1. Display list screen. 2. Wait for user input. 3. Receive list screen. 4. Read employee records from the employee file. 5. Display records in formatted form. 6. Wait for the user input. 7. Receive the screen. 8. Depending on the function key populate new list. 9. Redisplay the list.

Pseudo-conversational programming
Tasks First Second Operations 1. Display list screen. 3. Receive list screen.

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.

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

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

CICS programming
Divisions and Sections not used in CICS 1. Environment Division 2. Input Output Section 3. I-O control 4. File section Statements: 1. Open 2. Close

Statements in CICS
EXEC CICS SEND FROM(Data-Name) ERASE END-EXEC. EXEC CICS RECEIVE into(Data-Name) LENGTH(LENGTH OF Data-Name) END-EXEC. EXEC CICS RETURN END-EXEC.

CICS program to send a text to the terminal


IDENTIFICATION DIVISION. PROGRAM-ID. SAMP. DATA DIVISION. WORKING STORAGE SECTION. 77 VAR PIC X(20). PROCEDURE DIVISION. EXEC CICS SEND FROM(VAR) END-EXEC. EXEC CICS RETURN END-EXEC. STOP RUN.

PROGRAM TO RECEIVE THE DATA FROM THE TERMINAL


IDENTIFICATION DIVISION. PROGRAM-ID. SAMP. DATA DIVISION. WORKING STORAGE SECTION. 01 REC. 02 TRANS-ID PIC X(4). 02 VAR PIC X(20). PROCEDURE DIVISION. EXEC CICS RECEIVE INTO(REC) LENGTH(LENGTH OF REC) END- EXEC. EXEC CICS SEND FROM(VAR) END-EXEC. EXEC CICS RETURN END-EXEC. STOP RUN.

COBOL CICS
Translation DFHECP

Modified source code IGYCRCTL

Compile

Object Code

Link edit
PPT (Processing program table)

HEWL

EXEC

PPT will be defined by the system administrator Program entries are RN01M . RN15M

stored in the Load data set named DEV.SMTW.LOAD.PGMCI Transids used to initiate the task RN01 RN15

Native CICS Commands

CESN: CEDA: CEMT: CECI: CEDF: CMAC: CESF:

CICS Execute Sign ON CICS Execute Definition and Administration CICS Execute Master Terminal CICS Execute Command Interpreter CICS Execute Debug Facility CICS Messages for Abend Codes CICS Execute Sign OfF

CEBR CICS Execute temporary storage BRowse

CEMT SET PROG(RN01M) NE NE New copy PROG Name : RN01M Then , Give the Transid to execute the program loaded.

CEDA CICS execute Definition and Administration Used to enter values in PCT and PPT used by the admin.

CESF CICS Execute Sign Off Used to sign off from the CICS region.

You might also like