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 is the difference between AID and HANDLE AID?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
In COBOL, what is the different between index and subscript?
What are the different rules to perform a Search?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
How can you get the ksds file records into your cobol program?
) how do u code after getting data?
Whats the difference between search & search ALL?
What is an in line perform? When would you use it? Anything else you wish to say about it.
Write the code to count the sum of n natural numbers.
Have you used comp and comp-3 in your project? And how?
what is the use of outrecord?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
how do you reference the fixed unblock file formats from cobol programs
Can you please let me know the centre name of INS certification in Kolkata.