Module 5: CICS BMS and Screens
Symbolic Map
What is a symbolic map
- The symbolic map is a COBOL copybook generated from the mapset (DFHMSD TYPE=DSECT or TYPE=&SYSPARM).
- It is an 01-level group item that the program includes with a COPY statement in the Data Division.
- It lets the program refer to screen fields by name (CUSTNO1I, LNAMEO) instead of screen positions.
- Only DFHMDF fields that have a label appear in the symbolic map; unnamed constant fields do not.
Fields generated for each named map field
Input and output versions of the map
- BMS generates two 01-levels: mapnameI for input, and mapnameO REDEFINES mapnameI for output.
- SEND MAP uses the O version (FROM area); RECEIVE MAP uses the I version (INTO area).
- Moving -1 to a length field and coding CURSOR on SEND MAP positions the cursor at that field.
- A programmer may hand-code a symbolic map, but then must keep it in sync with the mapset manually after every change.
MainframeBug Assistant