Page 1 of 1

CICS Handle Abend Condition and COBOL

Posted: Tue Jun 09, 2015 11:28 am
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,

Re: CICS Handle Abend Condition and COBOL

Posted: Mon Jun 22, 2015 6:13 pm
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.

Re: CICS Handle Abend Condition and COBOL

Posted: Mon Jun 22, 2015 11:15 pm
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.