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 can i see junk values in dclgen or in hostvariable of comp ?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is redefines clause in COBOL?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How do define dynamic array in cobol.
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is the difference between structured cobol programming and object alternativelyiented cobol?
) what is the difference between AID and HANDLE AID?
What are literals?
What is difference between static and dynamic call in cobol?
Difference between array and sub-script ?
HOw can I get the negative sign while deduct high value from low value
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
Write a cobol program making use of the redefine clause.
what is amode(24), amode(31), rmode(24) and rmode(any)?