Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Goback Vs Return

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests
View previous topic :: :: View next topic  
Author Message
Kevin Dcosta

New User


Joined: 01 Jan 2008
Posts: 35
Location: Hyderabad

PostPosted: Thu Mar 05, 2009 5:18 pm    Post subject: Goback Vs Return
Reply with quote

i read through the existing posts but could not clearly undertsand, i have a scenario in cics where i am doing a LINK and then i want to return to my calling program, how will a goback differ from a return statement in the called module.
Back to top
View user's profile Send private message

Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Thu Mar 05, 2009 5:26 pm    Post subject:
Reply with quote

Kevin,
You can use any of them. Check this link for more info.
Back to top
View user's profile Send private message
Kevin Dcosta

New User


Joined: 01 Jan 2008
Posts: 35
Location: Hyderabad

PostPosted: Thu Mar 05, 2009 5:43 pm    Post subject:
Reply with quote

thanks a lot for the quick reply.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10309
Location: italy

PostPosted: Thu Mar 05, 2009 10:10 pm    Post subject: Reply to: Goback Vs Return
Reply with quote

here is a link to the call / exec cics link / exec cics xctl goback / return / exec cics return

http://publib.boulder.ibm.com/infocenter/cicsts/v3r2/index.jsp?topic=/com.ibm.cics.ts.applicationprogramming.doc/topics/dfhp3_cobol_subprog_rules.html
the link is badly built ( on IBM side ) I intended to point to the main paragraph above ....

Quote:
Calling subprograms from COBOL programs <== and
.. Flow of control between programs and subprograms <==
.. Rules for calling subprograms



strong advice ( not following it might make Your programs flunk any quality assurance tests

have a clear layout of the program calling structure / path
do not mix techniques
if a program is link'ed/xctl'ed with an EXEC CICS ...
it should return where it came from with an EXEC CICS RETURN

it will make life easier for people mantaining the application
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 -> HomeWorks & Requests All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm
No new posts EXIT or RETURN cvnlynn CLIST & REXX 18 Wed Jul 19, 2017 2:50 am
No new posts QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
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 MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us