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 |
What are the different open modes available in cobol?
Can we move X(7) to S9(7) COMP?
what is sysncpoint?
If a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....
what is linkcard in cobol?
what are decleratives in cobol?
Can anybody give me example of subscript and index
What is Static,Dynamic linking ?
How do you define a sort file in JCL that runs the COBOL program?
input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.
is this below syntax correct? CALL 'subprg' using A,B Please help
What is the difference between CALL BY VALUE and CALL BY CONTENT?