View previous topic :: View next topic |
Author |
Message |
rs_naveen Beginner
Joined: 29 Jul 2005 Posts: 18 Topics: 4
|
Posted: Tue Aug 30, 2005 12:46 am Post subject: Abend Handling in APPC Communication |
|
|
If I am invoking CICS Transactions from DB2 Stored Procedure using APPC CPI-C calls, and when some abends happen in CICS, how the SP know the partner program abends? Is there any method to handle this condition. If the partner CICS program abends and SP runs as if the partner runs successfully, then it will lead to some problems.
APPC
DB2 SP------> CICS
Can anyone help in this case? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Tue Aug 30, 2005 3:25 am Post subject: |
|
|
rs_naveen,
I am assuming that you are invoking the CICS transaction using EXCI interface. If so you can do the error code checking.
ex:
Code: |
EXEC CICS LINK PROGRAM ('EMPEXC2C')
TRANSID ('DPT1')
APPLID ('SCSCPAPB')
COMMAREA(WS-COMM-AREA)
LENGTH (WS-COMM-LEN)
RETCODE (EXCI-EXEC-RETURN-CODE)
SYNCONRETURN
END-EXEC.
|
When the LINK statement is executed, CICS will load program DFHMIRS, the EXCI mirror program, which in turn will load the program that is passed in the PROGRAM field of the LINK statement, which is EMPEXC2C in our case. The fields WS-COMM-AREA and WS-COMM-LEN represent the commarea, and the length of the commarea that are passed from the stored procedure to CICS program EMPEXC2C.
The field EXCI-EXEC-RETURN-CODE contains five diagnostic fields that are passed back to the calling program. Diagnostic field definition for stored procedure with EXCI call
Code: |
01 EXCI-EXEC-RETURN-CODE.
02 EXEC-RESP PIC 9(8) COMP.
02 EXEC-RESP2 PIC 9(8) COMP.
02 EXEC-ABCODE PIC X(4).
02 EXEC-MSG-LEN PIC 9(8) COMP.
02 EXEC-MSG-PTR POINTER.
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
rs_naveen Beginner
Joined: 29 Jul 2005 Posts: 18 Topics: 4
|
Posted: Tue Aug 30, 2005 7:20 am Post subject: |
|
|
Hi,
Thanks for the reply. But because of DTP calls within CICS to IMS DC, I cannot use EXCI to invoke CICS. So, I used APPC to invoke CICS.
But I dont know how we can handle abends in APPC? |
|
Back to top |
|
|
rs_naveen Beginner
Joined: 29 Jul 2005 Posts: 18 Topics: 4
|
Posted: Wed Sep 07, 2005 4:23 am Post subject: |
|
|
Sorry for the mistake, we can use DSNACICS or EXCI for this purpose. |
|
Back to top |
|
|
|
|