Hello All,
Can anyone of you please guide towards or give me a sample code for handling CICS abend in COBOL program?
I am working on building CICS web service. And in case of abend, I wuld want to send the Abend Code and Abend message through a response copy book. Can anybody please tell me how to process dump data in case of CICS abend to retrieve Abend code and message?
Any help is appreciated
Thanks,
CICS Handle Abend Condition and COBOL
-
- New Member
- Posts: 2
- Joined: Thu Dec 04, 2014 2:30 pm
Re: CICS Handle Abend Condition and COBOL
Hi, I generally used in my application are LENGERR,MAPFAIL,INVREQ..etc..
These conditions depend upon your apps. also you can check RESP with CICS command OR check EIBRESP/EIBRESP2(S9(8) COMP) and EIBRCODE (X(6)) to check CICS command is executed well or NOT.
All i'm saying that it depends on your Application and coding,how you want to handel.
These conditions depend upon your apps. also you can check RESP with CICS command OR check EIBRESP/EIBRESP2(S9(8) COMP) and EIBRCODE (X(6)) to check CICS command is executed well or NOT.
All i'm saying that it depends on your Application and coding,how you want to handel.
Dhiraj Mishra
- Robert Sample
- Global Moderator
- Posts: 1891
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: CICS Handle Abend Condition and COBOL
Using the RESP option gives you the most flexibility in handling CICS problems. Since the CICS dump is generated outside CICS program control, you CANNOT access it for any data. Analyze the RESP code and the other EIB fields to identify issues but don't expect to look at a dump. Read the IBM manuals and Redbooks for examples of code to handle web services and process RESP codes.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute