You are on page 1of 66

INTRODUCTION TO CICS

Pavani D Feb 23, 2007

OBJECTIVES
• • • • •

BATCH & ONLINE SYSTEM

 

BATCH & ONLINE SYSTEM

BATCH & ONLINE SYSTEM Contd….

WHAT IS CICS?
• • • •

CICS / VS CONTROL

CICS CONTROL PROGRAM AND TABLES
• • • • • • • • •

CICS CONTROL PROGRAM AND TABLES - Contd…
• • • • • • • •

CICS START UP
    

CICS SHUTDOWN

ROLE OF CICS
   

STRUCTURE OF CICS APPLICATION PROGRAM

Identification Division •

Environment Division

STRUCTURE OF CICS APPLICATION PROGRAM - Contd…
  

TERMINATION STATEMENTS
• • •

IMPORTANT DEFINITIONS
•Transactions

• Task •Program

CONVERSATIONAL TRANSACTION
• • • •

PSEUDO CONVERSATIONAL TRANSACTION

• • •

PROGRAM PREPARATION

PROGRAM PREPARATION Contd…

PROGRAM PREPARATION Contd…

• 

TESTING

• •

COMMON FORMAT

• •

ARGUMENT VALUES

RECEIVE COMMAND

SEND COMMAND

EXCEPTIONAL CONDITIONS

HANDLE CONDITION
• •

IGNORE CONDITION
• •

NO HANDLE OPTION

FORMATTING TIME AND DATE

FORMAT TIME COMMAND

FORMAT TIME COMMAND Contd…

DELAY COMMAND

        

 

READING EXTERNAL DATA - OBJECTIVE

FUNCTIONAL OVERVIEW

RDB

FUNCTIONAL OVERVIEW contd…

VSAM DATA STRUCTURES

PROGRAM ORGANIZATION

RECORD IDENTIFICATION
• • • •

• •

READ COMMAND

EXCEPTIONAL CONDITIONS

READ

EXAMPLE
         MOVE 50 TO WS  - LEN          MOVE ‘BAG’ TO REC - KEY.          EXEC CICS READ                  DATASET (‘FILEAAA’)                  INTO (data-area)                  RIDFLD (REC-KEY)                  KEYLENGTH (3)                  GENERIC                  LENGTH (WS-LEN)           END-EXEC.

BAG 110

READ COMMAND

BROWSE

STARTBR

   •

READNEXT

READPREV

XCTL COMMAND

PROGRAMS TO PROGRAM TRANSITION

• • • •

ADDRESSABILITY

CICS QUEUEING FACILITIES

CICS QUEUEING FACILITIES

• •

TRANSIENT DATA QUEUE
• • •

 

TRANSIENT DATA QUEUE - Contd…

 

INTRA PARTITION TDQ

• • • •

EXTRA PARTITION TDQ

• • •

CICS COMMANDS FOR TDQS

EXCEPTIONAL CONDITIONS

  

TEMPORARY STORAGE QUEUE
• • • • • • • • •

WRITEQ TS

READQ TS

DELETEQ TS of TSQ

• •

EXCEPTIONAL CONDITIONS

  