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 |
The maximum number of dimensions that an array can have in COBOL-85 is ?
In COBOL, what is the different between index and subscript?
0 Answers TryTechnicals Pvt Ltd,
How do you set a return code to the JCL from a COBOL program?
What is difference between static and dynamic call in cobol?
What are ISOLATION LEVELS? Where do we need to specify them?
) How do u handle errors in BMS macro
What is the difference between goback, stop run and exit program in cobol?
is it possible to declare index in cobol program? if it is not why its tell me pls
What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.
what is search and searchall?what is the diffrence between them?give an best example?
Program A calls program B. Will the working storage variables declared in program B be initialized every time it is called by program A or will the values be retained until the end of program A?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?