Cics Day3
Cics Day3
Objectives
• Introduction to BMS
• Physical and Symbolic Map
• Map and Mapset
• Map Definition Macros
• Screen Design Considerations
Introduction To BMS
(Basic Mapping Support)
• Physical Map
• Symbolic Map
Example of Symbolic Map
01 EMPRECI.
02 FILLER PIC X(12).
02 EMPNAL PIC S9(4) COMP.
02 EMPNAF PIC X.
02 FILLER REDEFINES EMPNAF.
03 EMPNAA PIC X.
02 EMPNAI PIC X(21).
Physical MAP
Symbolic MAP
Linkage editor
• Example
• Example
• Where
& Attribute character
n Unprotected numeric
- Cursor
DFHMDF macro for the above
•
layout
Define a field and its characteristics
• Example
DFHMDF POS(ll,cc), X
INITIAL=‘Customer No. :’,
X
ATTRB=ASKIP,
X
LENGTH=14
• MDT setting/resetting
- when the user modifies a field on the screen
- CTRL=FRSET, defined in map/mapset
- FSET in ATTRB parameter of DFHMDF
Dynamic Attribute Assignment
• 0 1 2 3 4 5 6 7
• 0 and 1 – Dependent bits( 0 on 2 & 1 on 7)
• 2 and 3 – Attribute
– 2 – 0 protected 1 unprotected
– 3 – 0 alphanumeric 1 numeric
• 4 and 5 – Intensity
– 0 0 (norm/non detectable)
– 0 1(norm/detectable)
– 1 0(BRT)
– 1 1(DRK)
Skipper Technique
• Skipper technique is used to skip the cursor to the next
unprotected field after one unprotected field.
• DFHMDF POS(ll,cc),ATTRB=ASKIP,LENGTH=1
Stopper Technique
• DFHMDF POS(ll,cc),ATTRB=PROT,LENGTH=1
Cursor Positioning Techniques
• Static positioning (map definition)
Conditions : INVREQ,LENGERR
RECEIVE Map
• To receive input from a terminal
• Syntax :
EXEC CICS RECEIVE MAP (mapname)
[INTO(dataname) ]
[LENGTH(msg-len)]
[ MAPSET(mapsetname) ]
[ HANDLE | NOHANDLE
[ RESP() ] ]
END-EXEC
25
Recap
• What is a BMS?
• What are the two kinds of maps? Why do we
need them?
• What are the macros used to define?
• What is MDT, FSET and FRSET?
• What are the symbolic map fields generated?
• What are the cursor positioning techniques??
Lab Session
Macro Coding For map design