Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem with RETURN

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
srvmani
Warnings : 1

New User


Joined: 30 Dec 2003
Posts: 19

PostPosted: Thu Mar 25, 2010 3:21 pm    Post subject: Problem with RETURN
Reply with quote

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

Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Thu Mar 25, 2010 4:39 pm    Post subject:
Reply with quote

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

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Thu Mar 25, 2010 7:43 pm    Post subject:
Reply with quote

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

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Thu Mar 25, 2010 8:39 pm    Post subject:
Reply with quote

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... icon_wink.gif
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Thu Mar 25, 2010 8:55 pm    Post subject:
Reply with quote

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... icon_wink.gif
Probably, but was it really a XCTL and not a LINK that transfered to PROG C?
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Thu Mar 25, 2010 9:16 pm    Post subject:
Reply with quote

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... icon_razz.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us