Module 5: CICS BMS and Screens
RECEIVE MAP
What RECEIVE MAP does
- RECEIVE MAP receives data the user typed at the terminal into the program.
- The data sits in the CICS terminal input buffer from the moment the user presses an attention key (Enter, PF key).
- BMS maps the input into the symbolic map's input area using the physical map's field definitions.
- Only fields with MDT on are transmitted, so the program sees just what the user entered or changed.
Options
The MAPFAIL condition
- MAPFAIL is raised when the user entered no data at all - nothing with MDT on was transmitted.
- Prevent it by always including the 1-byte DUMMY field with FSET in the map (see the MDT page).
- Do not issue RECEIVE MAP when the user pressed the Clear key or a PA key - there is no input map data then.
- Check EIBAID first (against DFHAID values like DFHENTER, DFHCLEAR, DFHPA1) and handle attention keys before receiving the map.
MainframeBug Assistant