View previous topic :: View next topic
|
Author |
Message |
Kevin Dcosta
New User
Joined: 01 Jan 2008 Posts: 35 Location: Hyderabad
|
|
|
|
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 |
|
|
Srihari Gonugunta
Active User
Joined: 14 Sep 2007 Posts: 295 Location: Singapore
|
|
|
|
Kevin,
You can use any of them. Check this link for more info. |
|
Back to top |
|
|
Kevin Dcosta
New User
Joined: 01 Jan 2008 Posts: 35 Location: Hyderabad
|
|
|
|
thanks a lot for the quick reply. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
|