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 ?
Answers were Sorted based on User's Feedback
Answer / anoop
Nothing will happen. Program will run fine since Go back
gives the control back to the operating system
| Is This Answer Correct ? | 18 Yes | 2 No |
Answer / 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 |
Answer / sivakumar sekharannair
Yes nothing will happen since go back will take the control
back from where it is called and finally the control will
go to operating system
| Is This Answer Correct ? | 6 Yes | 2 No |
01 a pic s9(5) value '-12345' how it will be stored
What is the difference between Global and External Variables?
How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?
In the JCL, how do you define the files referred to in a subroutine ?
Give some examples of command terminators?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
what is the advantage of using redefines instead of delaring the variables ?
What is wrong with the following data declaration? 01 W-DATE PIC X(6). 05 DD PIC 99. 05 MM PIC 99. 05 YY PIC 99. (a) Nothing is wrong. (b) Under W-DATE all level 05 items are having a PIC 99 but level 01 has PIC X(6). (c) PIC can't be specified for a group item. (d) DD, MM, and YY are invalid datanames.
Write down the divisions of cobol program?
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.
What rules are to be followed while using the corresponding options?
Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER