GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 86 of 162    Print  
What will happen if we give GOBACK statement instead of STOPRUN in a program which does not call any other program?

  
Total Answers and Comments: 3 Last Update: January 30, 2007     Asked by: Jeeva 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 14, 2006 02:52:17   #1  
Balaji        

RE: What will happen if we give GOBACK statement inste...

Stop run: Terminates the execution of the program and return back to the OS

GOBACK: Terminates the execution of the program and return back to the previous higher level.

If you give goback instead of stoprun in a standalone program nothing will happen. goback is going to return back to the OS since that is the higher level for the program.


 
Is this answer useful? Yes | No
December 21, 2006 14:38:57   #2  
Sodadasi        

RE: What will happen if we give GOBACK statement inste...
The program will go in an infinite loop even if you code in Called or calling program. Goback gives the control from the begining of the program
 
Is this answer useful? Yes | No
January 30, 2007 10:27:12   #3  
Pradeep Bhatt        

RE: What will happen if we give GOBACK statement inste...
It will return to calling program. In a threaded environment if the program is the first program in a thread the thread is terminated.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape