Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Test Handle Condition

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
amitc23

New User


Joined: 05 Nov 2014
Posts: 78
Location: India

PostPosted: Thu Feb 12, 2015 11:59 am    Post subject: Test Handle Condition
Reply with quote

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

Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Thu Feb 12, 2015 4:04 pm    Post subject:
Reply with quote

not very clear what you need is...

What are you trying to achieve ?
Back to top
View user's profile Send private message
amitc23

New User


Joined: 05 Nov 2014
Posts: 78
Location: India

PostPosted: Thu Feb 12, 2015 4:28 pm    Post subject:
Reply with quote

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

JCL Moderator


Joined: 14 Jul 2008
Posts: 1238
Location: Richfield, MN, USA

PostPosted: Thu Feb 12, 2015 7:58 pm    Post subject:
Reply with quote

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

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Thu Feb 12, 2015 8:12 pm    Post subject:
Reply with quote

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

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Feb 12, 2015 8:31 pm    Post subject: Reply to: Test Handle Condition
Reply with quote

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

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Thu Feb 12, 2015 8:33 pm    Post subject:
Reply with quote

I Agree Bill, and Terry stated the correct method to be using.
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 COOLGEN - TSO TEST FACILITY indianrajput CA Products 4 Wed Nov 02, 2016 9:28 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
This topic is locked: you cannot edit posts or make replies. How to supply called sub-program from... dchristensen JCL & VSAM 25 Wed Sep 14, 2016 11:36 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us