CICS

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

CICS (Customer Information Control System):

 Transactions will deal mostly for online jobs. Like ATM, Railway reservation, insurance etc.
 Transactions are 2 types: 1) User defined transaction
2) System defined transaction
 Either User defined/ System defined transaction the ID should be b/n 1 to 4 characters normally
we use 4 characters.
 User defined transaction are end user defined like TR01,TR02 etc. and System defined
transaction are supplied by online for common repeated task. Within online environment like
CEMT, CEDA, CEDF etc.
 NOTE: Entire MF applications consists of Jobs & Transactions.
 Task: An instance of execution of particular transaction type is called Task. So if there is one
transaction using by 100 users then it will be 100 Tasks
 MultiTask: Online is a multi-task environment, where multiple Programs can be executed by
multiple users concurrently i.e. resources are allocated to diff programs simultaneously.
 Multithreading: If same program is being executed by multiple users concurrently is called
multithreading
 SCREEN: Online users will interact to the online system with the help of screens.
Screen is developed with MAPSET.
Mapset is a collection of MAPS
MAP is a collection of FIELDS.

In order to develop MAPSET, MAP, FIELD BMS concept is used.


BMS  it stands for Basic MAP Support, It is called as ASSEMBLER MACROS.
To define MAPSET – DFHMSD (Define field hierarchy Mapset definition) Macro is used.
To define MAP – DFHMDI (Define field hierarchy map definition interface) Macro is used.
To define a FIELD – DFHMDF (Define field hierarchy map definition field) Macro is used.

 Rules: MAPSET, MAP, FIELD and user defined names should be normally b/n 1-8 Alphanumeric.
Any program should be coded in PDS member.
For Assembler/BMS macro program a separated PDS member is coded.

 Hierarchy of Screen :
 Text fields will not change whereas variable fields can change. Some Variable fields are
protected and some are not.
Ex: in a website you may find “Enter your name” (Text field): “Sarath Chandra” (Variable field)

Important Items in designing Screen:


 Screen Headers to identify screen
 Unnamed field with initial value for every named field and headers
 Named fields for every data that is going to be communicated b/n terminal & program
 Unprotected fields to allow terminal user to enter data.
 Stopper field to stop end user beyond the max. size of field
 ASKIP for every protected field
 Error message in the bottom of the screen
 Function keys and its descriptions in the end
 Most of the applications number and amount fields are alphanumeric in the screen design
where as these are converted into numeric in the application process
 Static cursor positioning with IC for one field
 FSET for the mandatory fields

Who are the CICS users?


Business users who update the data or browse the data from database. Data entry operators who
creates transactions

Cursor Positioning:
 Static Cursor : Static cursor positioning with “IC” in the map design.
Ex: DFHMDF POS=(3,16)
ATTRIB=(UNPROT,FSET,IC)
LENGTH=8
 Dynamic Cursor : Dynamic cursor positioning by moving -1 to length field and also cursor option
in send commad.
Ex: MOVE -1 TO LENGTH-FIELD
EXEC CICS SEND
MAP(‘MP123’)
MAPSET(‘MS123’)
CURSOR(80)
END-EXEC.
 Relative Cursor: It is by cursor with value in send map command.
Ex: CURSOR with a value relative to Zero (Position 1,1 is Zero).

Screen Example:

Step 1: Create PDS and a member then code Assembler Macro by using DFHMSD, DFHMDI,
DFHMDF. Ex : TSO.USERID.CICS.MAPS(CICMAP1)

MAPS00IS DFHMSD Type = MAP or DSECT or &SYSPARM,


Mode = IN/OUT or INOUT
LAN = COBOL
TIOAPEX=YES
CNTL=(FRSET,PRINT,FREEKB)

MAP001M DFHMDI SIZE = (24,80) --- Default --- x rows and y columns

DFHMDF POS = (1,10) ----- 1st row 10th column


Initial = “********* INSURANCE DATA ****************“
Length =30
DFHMDF POS = (2,10)
Initial = “------------------------------------------------------------------“
Length =30

DFHMDF POS = (4,1)


Initial = “Policy Number“
Length =14

Mpolnb DFHMDF POS = (4,16)


ATTRB=(UNPROTECT/PROTECT,IC,Red,Drk,Skip,Fset)
--- IC –Input/Insert cursor
---Red,Drk - Color
---FSET – ON mode , FRSET – OFF mode
--Skip – to Skip to next Entrable field
PICIN = “9(5)”
PICOUT=”Z(5)”
Length =14

DFHMDF POS = (7,1)


Initial = “Customer Name“
Length =9
Mpolnd DFHMDF POS = (7,13)
ATTRB=(UNPROTECT/PROTECT,IC,Red,Drk,Skip,Fset)
PICIN = “9(5)”
PICOUT=”Z(5)”
Length =14

Physical Map : TYPE =MAP , end user, Loaded in LOADLIB, Contains Object code
Symbolic Map : TYPE=DSECT , Application programmer, copy book will be created, Load lib will be
COPYLIB, Contains Variables.
 For both maps to display we need SYSPARM

Symbolic Map Structure:

Ex: For Screen Below

********************************************************
Emp ID:
PH No:
********************************************************

MAPS00IS DFHMSD Type = MAP or DSECT or &SYSPARM,


Mode = IN/OUT or INOUT
LAN = COBOL
TIOAPEX=YES
CNTL=(FRSET,PRINT,FREEKB)

MAP001M DFHMDI SIZE = (24,80) --- Default --- x rows and y columns

DFHMDF POS = (1,10) ----- 1st row 10th column


Initial = “*******************************“
Length =30

DFHMDF POS = (3,1)


Initial = “Emp No:“
Length =8

Mpolnb DFHMDF POS = (3,10)


ATTRB=(UNPROTECT/PROTECT,IC,Red,Drk,Skip,Fset)
--- IC –Input/Insert cursor
---Red,Drk - Color
---FSET – ON mode , FRSET – OFF mode
--Skip – to Skip to next Entrable field
PICIN = “9(5)”
PICOUT=”Z(5)”
Length =14

DFHMDF POS = (5,1)


Initial = “Emp No:“
Length =8

Mpolnb DFHMDF POS = (5,10)


ATTRB=(UNPROTECT/PROTECT,IC,Red,Drk,Skip,Fset)
--- IC –Input/Insert cursor
---Red,Drk - Color
---FSET – ON mode , FRSET – OFF mode
--Skip – to Skip to next Entrable field
PICIN = “9(5)”
PICOUT=”Z(5)”
Length =14

For Symbolic Map it is stored in copybook library called MAPLIB it looks like Below
01 MAP001I
02 Filler PIC X(12).
02 EMPIDL COMP PIC S9(4).
02 02 EMPIDF PIC X.
02 FILLER REDFINES EMPDIF
03 EMPIDA PIC X.
02 EMPNOI PIC X(6).
02 PHONEL COMP PIC X(5)
02 PHONEF PIC X.
02 FILLER REDEFINES PHONEF
03 PHONEA PIC X
02 PHONEI PIC X(10)

01 MAP001O REDEFINES MAP001I


02 FILLER PIC X(12).
02 FILLER PIC X(3)
02 EMPIDO PIC X(6).
02 FILLER PIC X(3).
02 PHONEO PIC X(10)

I  INPUT (Receives the input data from screen))


O  OUTPUT (Processed output values is stored and thrown on screen)
L  LENGTH (It returns length of text entered)

A  Attributes (used to override the attributes mentioned during testing and coding)
F  Flag byte.

How to Enter Into Online

Logon to CICS & clear the screen.

Define Mapset and group


CEDA DEF MAPSET(MAPST) GROUP(TST1)  ENTER
Define Successful

Install Mapset and group


CEDA INS MAPSET(MAPST) GROUP(TST1)  ENTER
Install successful

View the Map


CECI SEND MAP(MAP1) MAPSET(MAPST)  ENTER
Map will get displayed.

You might also like