IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

The CICS Return statement is calling the same program


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
santsark

New User


Joined: 08 Aug 2008
Posts: 9
Location: Kolkata

PostPosted: Fri Nov 07, 2008 2:04 pm
Reply with quote

Hi,

I'm Xpedting a program and it seems that CICS Return statement has some issue.

I have ProgA which calls ProgB through Link statement. ProgB inturn calls other programs though link only. But when I execute the statement CICS Return in ProgB the program starts from the begining. Next time when the CICS return is executed, it returns to ProgA.

How can I trace the path or know where the control will return?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Nov 07, 2008 2:29 pm
Reply with quote

General consideration ....

after a LINK the program will always return to the calling program
-- You go down one level in the nesting chain

so ... progB returning to progA is the natural thing to happen

if progA restarts from the beginning, I feel, it is a progA issue

are You sure that somewhere You do not have a return transid ....
with the transid being the one that triggers progA ??
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Calling an Open C library function in... CICS 1
Search our Forums:

Back to Top