View previous topic :: View next topic
|
Author |
Message |
amitc23
New User
Joined: 05 Nov 2014 Posts: 95 Location: India
|
|
|
|
Hi
I have a peculiar problem here. I have some programs which have EXEC CICS HANDLE CONDITIONS and also EXEC CICS HANDLE ABEND (which was commented earlier). EXEC CICS HANDLE CONDITION handles almost all of the invalid conditions. e.g.
EXEC CICS HANDLE CONDITION
IOERR(IOERROR)
ENDFILE(ENDFILE)
NOTAUTH(FILENOTA)
NOTOPEN(FILENOTO)
DISABLED(FILENOTA)
DUPREC(DUPLICT)
NOTFND(NOTFOUND)
ERROR(IOERROR)
The modules might have abended (not sure because of what) on our client side, we do not have a record of the logs. And then EXEC CICS HANDLE ABEND Was uncommented to tackle the abends, ie now we have following before EXEC CICS HANDLE CONDITION
EXEC CICS HANDLE ABEND
LABEL(ABENDERR)
I was just testing the changes. I am unable to think of any other condition apart from the ones listed above (in HANDLE CONDITION) to test the HANDLE ABEND. I tried disabling some of the calling programs through CEMT I PROG, but that does not solve the purpose. Don't have access to the PPT etc so that I can manipulate them.
Please tell me any other creatable condition apart from the following ones for which I can see if EXEC CICS ABEND takes care of that , which It did not earlier.
IOERR
ENDFILE
NOTAUTH
NOTOPEN
DISABLED
DUPREC
NOTFND
ERROR
Thanks a lot. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
not very clear what you need is...
What are you trying to achieve ? |
|
Back to top |
|
|
amitc23
New User
Joined: 05 Nov 2014 Posts: 95 Location: India
|
|
|
|
Hi Marso
Thanks for looking into this.
I am just trying to simulate any other condition other than ones listed above so that my code traps it through HANDLE ABEND rather than HANDLE CONDITION. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
It's been a while since I've dealt with CICS programs, but you might consider using the RESP option of each CICS command rather than the HANDLE CONDITION command which is in effect for ALL CICS commands, not just the one you're executing at the time. The RESP option is preferred to the HANDLE CONDITION by many shops. |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
The Handle ABEND has nothing to do with the handle CONDITION unless each of the handle condition routines is and CICS ABEND command, in which case it will then go to the LABEL(ABENDERR) |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
IMHO, I tend to avoid HANDLE ABEND LABEL(label-name) and let the transaction abend on it's own, preserving all in question.
Just my 2 cents.... |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
I Agree Bill, and Terry stated the correct method to be using. |
|
Back to top |
|
|
|