Professional Documents
Culture Documents
CICS
CICS
CICS
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.
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)
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)
MAP001M DFHMDI SIZE = (24,80) --- Default --- x rows and y columns
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
********************************************************
Emp ID:
PH No:
********************************************************
MAP001M DFHMDI SIZE = (24,80) --- Default --- x rows and y columns
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)
A Attributes (used to override the attributes mentioned during testing and coding)
F Flag byte.