| |
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 | |