Professional Documents
Culture Documents
"
COBOL CICS command level programs should have the BMS-generated symbolic - map copied into either of their Working-Storage or Linking sections.
SEND MAP RECEIVE MAP
"
"
" "
"
"
SEND MAP COMMAND Issued to send the physical and/or symbolic map in order to format a terminal screen. Syntax EXEC CICS SEND MAP ('mapname') MAPSET ('mapset name') [FROM(data-name)] [MAPONLY/DATAONLY] [ERASE/ERASEAUP] [CURSOR[(numeric-data-value)]] [FREE KB] [FRSET] [ALARM] END-EXEC.
CURSOR POSITION
There are Two type of cursor position in map they are 1 . STATIC METHOD 2 . DYNAMIC METHOD a) RELATIVE POSITION ( 0 to 1919) b) SYMBOLIC NAME (FieldnameL)
"
"
" "
If the field has not been modified by the terminal operator then MDT value become 0 (zero) (OFF state).
If the field has been modified by the terminal operator then MDT value become 1 (ON state).
MDT
Set to ON state
a) Static method using FSET option b) Dynamic method using Receive map option
"
Set to OFF state a) Static method using FRSET option b) Dynamic method using Send map option
Facilitates the accept the symbolic map data from IO device & pass to the application program variable (into the working-storage).
Syntax
" "
"
[INTO (data-name) ]
END-EXEC.
"
"
HANDLE CONDITION
"
" "
"
Handles various anticipated or unexpected CICS conditions. Syntax EXEC CICS HANDLE CONDITION MAPFAIL(MF-PARA) DUPREC(DP-PARA) NOTFND(NF-PARA) ERROR (ERROR-MESSAGE) END - EXEC. Note : Maximum of 12 condition
"
Example
"
" " "
"
"
"
"
"
IF WS-RESP = DFHRESP(NORMAL) PERFORM ADD-PARA ELSE IF WS-RESP = DFHRESP(MAPFAIL) PERFORM MF-PARA ELSE PERFORM ERR-PARA.