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 to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Write a program that uses move corresponding.
What are the different types of condition in cobol and write their forms.
What is perform what is varying?
What are declaratives and what are their uses in cobol?
What is the difference between comp and comp-3?
What is inspect in cobol ?
) what is the difference between AID and HANDLE AID?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What is the difference between binary search and sequential search?
What is static and dynamic call in cobol?
What are the access modes of START statement?
What is the difference between PIC 9.99 and 9v99 in COBOL?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this