View previous topic :: View next topic
|
Author |
Message |
asvijay
New User
Joined: 13 Jul 2006 Posts: 11
|
|
|
|
Hi,
In subroutine, what is the difference of usage in GOBACK and RETURN? |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
Hi Vijay,
This topic has been discussed many a time in the forum.
Please search the forum before you post.
Anyhow,
In the case of a Subroutine,
If a GOBACK is coded at the end of the routine. the control goes back to the Called program.
If a Stop Run is coded, the execution terminates and the control goes back to the MVS.
~Vamsi |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
Back to top |
|
|
asvijay
New User
Joined: 13 Jul 2006 Posts: 11
|
|
|
|
Hi Vamsi,
I did not ask the difference between GOBACK and STOP RUN i just asked diff bn GO BACK and RETURN...i heard the RETURN is also the word can be used to get back the control of subroutine for main program..
Can u help me? |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
The 'RETURN' statement is not the same as the 'GOBACK' statement.
Please read the RETURN STATEMENT from the IBM COBOL Manual
If you still have confusion, please come back
Dave |
|
Back to top |
|
|
|