View previous topic :: View next topic
|
Author |
Message |
Nileshkul
New User
Joined: 09 May 2016 Posts: 43 Location: India
|
|
|
|
I want to code a piece of code to use CICS HANDLE to trap AD2R abend.
How can I specify this particular AD2R as a condition to be handled in CICS HANDLE command?
Just like we have MAPFAL, DUPKEY as valid conditions, what condition should be coded for AD2R abend handling?
Apologies if too basic query, any pointers would help.
Thanks - Nilesh |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
How can I specify this particular AD2R as a condition to be handled in CICS HANDLE command? |
You can't -- the CICS Application Programming Reference manual tells you what can be handled (and if it is not in the manual, don't expect to be able to handle it).
Quote: |
Just like we have MAPFAL, DUPKEY as valid conditions, what condition should be coded for AD2R abend handling? |
I repeat, if it is not listed in the manual don't expect to be able to handle the abend.
Generally, you could code EXEC CICS HANDLE ABEND but (1) this cannot be made specific to the AD2R code (or any other code), and (2) the manual tells you that EXEC CICS HANDLE ABEND cannot handle abends issued with the CANCEL option -- and the listing of the AD2R abend does not indicate whether or not the CANCEL option is specified. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
did You care to look at the manual for the meaning of the AD2R abend ...
the reasons for it are not always evident, and the advice is to look at the trace table to find it
so the wisest thing is to let the abend proceed.
and the DB2 and CICS recovery handle the roll back of all the updated resources. |
|
Back to top |
|
|
Nileshkul
New User
Joined: 09 May 2016 Posts: 43 Location: India
|
|
|
|
Thanks all for quick replies.
Really helpful. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
Quote: |
what condition should be coded for AD2R abend handling?
|
And Why do you want to test this abend, all you care about is the good RESPonse Code and anything else should error out? |
|
Back to top |
|
|
|