GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL

 Print  |  
Question:  How will work GOBACK statement & STOP RUN & EXIT-PROGRAM in COBOL ?



September 09, 2008 11:46:33 #1
 prasanfid   Member Since: September 2008    Total Comments: 1 

RE: How will work GOBACK statement & STOP RUN & EXIT-PROGRAM in COBOL ?
 
goback

- When specified in main program, will act like stop run. i.e give control back too
O.S
- When specified in sub-program, will give control back to main program

Exit-program

- When specified in main program, will throw abend4038 (compilation) error, since it wont give the control back to the
O.S
- When specified in sub-program, will give control back to main program

stop run


- Will stop the current program and give control back to O.S (even in sub-program)
     

 

Back To Question