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
 

 

The CICS Return statement is calling the same program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: The CICS Return statement is calling the same program
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Fri Nov 07, 2008 2:29 pm    Post subject: Reply to: The CICS Return statement is calling the same prog
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    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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 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 Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


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