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

Goback Vs Return


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
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
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
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
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Mar 05, 2009 10:10 pm
Reply with quote

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

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> HomeWorks & Requests

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts REXX GETMSG does not return £HASP880... CLIST & REXX 2
No new posts RXSUBCOM Return Codes / Documentation CLIST & REXX 6
No new posts Force a Return Code and print error m... SYNCSORT 30
Search our Forums:

Back to Top