Cics Day-I
Cics Day-I
TERMINAL
VTAM BTAM TCAM Application Programs
VSAM
CICS
DB2
DASD
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 Communication
Services
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
Non-Aid Keys
Alphabets, numbers punctuation and special characters.
Inside CICS
Starting a transaction Flow of control during a transaction
Operating System
list screen
File Control
Program Library
Terminal
Transaction
B021
PCT
PB011 PB021
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.
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
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.
COBOL CICS
Translation DFHECP
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
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
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.