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

should I use Go back in the main program ? Yes we can use Go back in main program as well.

2 Answers   Xansa,


if one main program ,n -subprograms are then which call you follow ?why reasonuhg

4 Answers   UHG,


) how do u code after getting data?

0 Answers   IBM,


.How to add one input & one Out file in existing cobol program. how approach tell me step by step.

2 Answers   Syntel,


I have a sequential file of 100 records. How do I load the records into a two dimensional array ?

3 Answers   IBM, Xansa,






What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

2 Answers  


What is report-item in COBOL?

0 Answers   Arigo Infotech,


How do u sort the table for Search ALL? Is it only using ASCENDING KEY IS statement in occurs clause? If the data is input in non ascending order, will the ASC KEY IS automatically sort the data? or will it throw compile time error?

1 Answers   CTS,


what is the meaning of pic 9(09)v99-

4 Answers   HSBC,


Can we redefine the field of x(200) to less than 200?

0 Answers  


s9(18) comp-3:: What is the size of memory it takes internally?

4 Answers  


can we declare occurs in 01 level?

2 Answers   Temenos,


Categories