Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
HANDLE AD2R CICS ABEND

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: HANDLE AD2R CICS ABEND
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: 8526
Location: Dubuque, Iowa, USA

PostPosted: Sat Dec 07, 2019 12:54 am    Post subject: Reply to: HANDLE AD2R CICS ABEND
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 Member


Joined: 14 Mar 2007
Posts: 10662
Location: italy

PostPosted: Sat Dec 07, 2019 2:16 am    Post subject: Reply to: HANDLE AD2R CICS ABEND
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    Post subject:
Reply with quote

Thanks all for quick replies.

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

Senior Member


Joined: 21 Sep 2010
Posts: 2343
Location: NY,USA

PostPosted: Tue Dec 10, 2019 1:10 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can I use EXEC CICS START instead of ... smenjoge CICS 1 Sat Mar 21, 2020 1:41 am
No new posts Navigation program in CICS Ziko13 CICS 11 Fri Mar 06, 2020 2:30 pm
No new posts Recovery Routine/Abend exit to releas... Siva NKK Kothamasu PL/I & Assembler 14 Tue Feb 25, 2020 4:43 pm
No new posts CICS Performance statistics ragava_b CICS 3 Mon Feb 17, 2020 12:38 pm
No new posts DFSORT to handle in between specific ... subratarec DFSORT/ICETOOL 6 Thu Feb 06, 2020 1:22 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us