View previous topic :: View next topic
|
Author |
Message |
srvmani Warnings : 1 New User
Joined: 30 Dec 2003 Posts: 19
|
|
|
|
I am facing the problem with the following scenario.
1) Tran A started with the PROG A
2) PROG A xctled to PROG B
3) PROG B abended and xctled to PROG C(error information tracking)
4) at the completion of the program retruning with the tran id.
But at the completion of the PROG C i coded like to terminate the program c with the return tran id.
Once it is reached to the terminate para it is retruning the tran id and entering again for the second time.
I dont understand why it is re-entering again? even I terminated the program.
I coded like this in the PROG C
EXEC CICS RETURN
TRANSID(tran-id)
IMMEDIATE
END-EXEC.
Please help in this regard
Thanks
Subba |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi Subba,
Please have a look into the manuals and try to understand the difference between CICS RETURN and CICS RETURN TRANSID ... Am sure you will understand where you went wrong... |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Quote: |
3) PROG B abended and xctled to PROG C(error information tracking) |
When PROG B abended, what facility/command did you use to 'xctl' to PROG C? |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
CICS Guy wrote: |
Quote: |
3) PROG B abended and xctled to PROG C(error information tracking) |
When PROG B abended, what facility/command did you use to 'xctl' to PROG C? |
I guessed that the owner meant the ABEND was HANDLEd... |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
srvmani wrote: |
1) Tran A started with the PROG A
2) PROG A xctled to PROG B
3) PROG B abended and xctled to PROG C(error information tracking)
4) at the completion of the program retruning with the tran id. |
Returning with which tran id? Tran A that started with PROG A? Or the tran-id of the EC RETURN TRANSID(tran-id) command coded in PROG C?
Quote: |
But at the completion of the PROG C i coded like to terminate the program c with the return tran id. |
What program are you expecting to be started by this return tran id?
Quote: |
Once it is reached to the terminate para it is retruning the tran id and entering again for the second time. |
What program is being entered again? PROG A?
Binop B wrote: |
I guessed that the owner meant the ABEND was HANDLEd... |
Probably, but was it really a XCTL and not a LINK that transfered to PROG C? |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Quote: |
Probably, but was it really a XCTL and not a LINK that transfered to PROG C? |
Here, in our system also, its the same kind of concept like if any functional error is found, a XCTL is done to the error routine. This was the basis for my assumption... |
|
Back to top |
|
|
|