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
How are the next sentence and continue different from each other?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is the difference between comp and comp-3 usage?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is the difference between comp and comp-3?
What are the pertinent COBOL commands?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
how do you reference the rrds file formats from cobol programs
how can i see junk values in dclgen or in hostvariable of comp ?
Write the code to count the sum of n natural numbers.
What is a SSRANGE and NOSSRANGE?
What is the difference between structured cobol programming and object alternativelyiented cobol?
How do we get current date from system with century in COBOL?
how do you reference the variable block file formats from cobol programs
what are decleratives in cobol?