IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

HANDLE AD2R CICS ABEND


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nileshkul

New User


Joined: 09 May 2016
Posts: 24
Location: India

PostPosted: Sat Dec 07, 2019 12:11 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8569
Location: Dubuque, Iowa, USA

PostPosted: Sat Dec 07, 2019 12:54 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Senior Moderator


Joined: 14 Mar 2007
Posts: 10712
Location: italy

PostPosted: Sat Dec 07, 2019 2:16 am
Reply with quote

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
View user's profile Send private message
Nileshkul

New User


Joined: 09 May 2016
Posts: 24
Location: India

PostPosted: Sat Dec 07, 2019 3:10 am
Reply with quote

Thanks all for quick replies.

Really helpful.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2567
Location: NYC,USA

PostPosted: Tue Dec 10, 2019 1:10 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts How to get RBA value from CICS EVENT CICS 5
This topic is locked: you cannot edit posts or make replies. Sample CICS Webservices Program CICS 1
No new posts ABEND=04E FOR REASON=00E50013 DB2 4
No new posts Any idea about how to solve 3022 aben... IMS DB/DC 3
No new posts parmeter existence bit for URIMAP in ... CICS 1
Search our Forums:

Back to Top