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
Difference between cobol and cobol-ii?
Can we redefine the field of x(200) to less than 200?
What guidelines should be followed to write a structured cobol prgm?
Difference between array and sub-script ?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
how do you reference the printer file formats from cobol programs
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is perform what is varying?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What is rmode(any) ?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How to remove 2 duplicate records and copy only one using job control language?
How you can characterize tables in cobol?
What is amode(31)
How many bytes S(8) comp field occupy and its maximum value?