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: 10275
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 ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
No new posts EXIT or RETURN cvnlynn CLIST & REXX 16 Wed Jul 19, 2017 2:50 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm


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