CICS Handle Abend Condition and COBOL

Customer Information Control System. Middleware and MQ Series.
Post Reply
suresh indira
New Member
Posts: 2
Joined: Thu Dec 04, 2014 2:30 pm

CICS Handle Abend Condition and COBOL

Post by suresh indira »

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,
Dhiraj
Registered Member
Posts: 13
Joined: Fri Jun 05, 2015 12:19 am
Location: Pune

Re: CICS Handle Abend Condition and COBOL

Post by Dhiraj »

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.
Dhiraj Mishra
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: CICS Handle Abend Condition and COBOL

Post by Robert Sample »

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.
Post Reply

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

Register

Sign in

Return to “CICS, Middleware and MQ Series.”