MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Abend Handling in APPC Communication

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
rs_naveen
Beginner


Joined: 29 Jul 2005
Posts: 18
Topics: 4

PostPosted: Tue Aug 30, 2005 12:46 am    Post subject: Abend Handling in APPC Communication Reply with quote

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


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Aug 30, 2005 3:25 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
rs_naveen
Beginner


Joined: 29 Jul 2005
Posts: 18
Topics: 4

PostPosted: Tue Aug 30, 2005 7:20 am    Post subject: Reply with quote

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


Joined: 29 Jul 2005
Posts: 18
Topics: 4

PostPosted: Wed Sep 07, 2005 4:23 am    Post subject: Reply with quote

Sorry for the mistake, we can use DSNACICS or EXCI for this purpose.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group