View previous topic :: View next topic
|
Author |
Message |
vbhat
New User
Joined: 29 Apr 2005 Posts: 38
|
|
|
|
how we can handale mapfail abend?
can you please answer this question?
thanks |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Try to use HANDLE CONDITION(MAPFAIL) statement |
|
Back to top |
|
|
rsshanmugam
New User
Joined: 08 Mar 2005 Posts: 62 Location: Basildon
|
|
|
|
you can use ignore condition or resp option given in the exec cics command. |
|
Back to top |
|
|
dbelton
New User
Joined: 10 Jun 2005 Posts: 15
|
|
|
|
priya wrote: |
Try to use HANDLE CONDITION(MAPFAIL) statement |
The HANDLE CONDITION is not the proper way to do it for new development now since it generates a GOTO DEPENDING ON statement.
The proper way is to use the RESP option.
EXEC CICS RECIEVE MAP('A')
INTO(AREA)
RESP(AREA-FOR-RESP-CODE)
END-EXEC.
Evaluate true
WHEN AREA-FOR-RESP-CODE = DFHRESP(MAPFAIL)
PERFORM error-routine-for-mapfile
END-EVALUATE. |
|
Back to top |
|
|
|