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
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What are the pertinent COBOL
Are you comfortable in cobol or jcl?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What is the difference between PIC 9.99 and 9v99 in COBOL?
How many sections are there in data division in COBOL?
What is redefines clause in COBOL?
What is inspect in cobol ?
) How do u handle errors in BMS macro?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are the different rules to perform a Search?
Write a program that uses move corresponding.
Define cobol?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
how do you reference the fixed unblock file formats from cobol programs