What will happen if you code GO BACK instead of STOP RUN in
a stand alone COBOL program ?
Answer Posted / vampire
If GOBACK is coded instead of STOPRUN in a cobol program
which is not called by any other program nothing wrong will
happen. The program will give desired results.
Generally 3 things are coded to halt the execution of a
program they are
STOP RUN
GOBACK
EXIT PROGRAM
STOP RUN is frequently used and mainly coded in main
programs(calling program). The control will be returned to OS.
GOBACK is coded in the mainly in the subroutines or called
programs. The control will be returned to the calling
program. If STOP RUN is coded in the calling program the
program will go to an infinite execution. GOBACK can be
coded in the programs which is not called by any programs
instead of STOP RUN.
EXIT PROGRAM is seldom used.
Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
how do you reference the variable unblock file formats from cobol programs
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Why did you choose to work with ibm mainframe cobol programming?
What are the various section in data division and briefly explain them.
What is the difference between binary search and sequential search?
What is the difference between next sentence and continue in cobol programing language?
How you can characterize tables in cobol?
Name the divisions, which are available in a cobol program?
what is difference between cobol and cobol/400
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What are declaratives and what are their uses in cobol?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
How to use the same COBOL program in Batch and CICS on lines? explain with an example
How many sections are there in data division in COBOL?