What will happen if you code GO BACK instead of STOP RUN in
a stand-alone COBOL program i.e. a program which is not
calling any other 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 ? | 9 Yes | 4 No |
Post New Answer View All Answers
What are the rules of the move verb?
What is the difference between goback, stop run and exit program in cobol?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What are the different rules for performing sort operation?
) How do u handle errors in BMS macro
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Which is not true about evaluate statement
Discuss about changing dataset name in proc.
How are the next sentence and continue different from each other?
Which division and paragraphs are mandatory for a COBOL program?
Difference between cobol and cobol-ii?
HOw can I get the negative sign while deduct high value from low value
What are the pertinent COBOL commands?
How do you get the data to code the BMS macro?
i need a small 3d program using inline and outline.