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



What will happen if you code GO BACK instead of STOP RUN in a stand-alone COBOL program i.e. a pro..

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

What will happen if you code GO BACK instead of STOP RUN in a stand-alone COBOL program i.e. a pro..

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

What will happen if you code GO BACK instead of STOP RUN in a stand-alone COBOL program i.e. a pro..

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

Post New Answer

More COBOL Interview Questions

Whats the difference between search & search ALL?

3 Answers   IBM,


where will we code call by content and call by reference dude pls reply soon ?

2 Answers  


I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?

3 Answers   HCL, IBM,


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

0 Answers  


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

0 Answers   TryTechnicals Pvt Ltd,






What is Static and Dynamic linking ?

3 Answers  


Explain how to differentiate call by context by comparing it to other calls?

0 Answers  


what will be the output when a)pic 9(6)value 000178 is moved to pic ***,***. b)pic 9(5) value 57397 is moved to pic $$,$$9.

5 Answers  


subscript and index r not coded in u r application program what will happen?

2 Answers  


What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program ?

8 Answers   Arigo Infotech, IBM,


What are various search techniques in cobol? Explain.

0 Answers  


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

0 Answers  


Categories