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

Answer Posted / 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 ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

827


how do you reference the variable unblock file formats from cobol programs

753


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

680


Why did you choose to work with ibm mainframe cobol programming?

631


What are the various section in data division and briefly explain them.

700






What is the difference between binary search and sequential search?

643


What is the difference between next sentence and continue in cobol programing language?

712


How you can characterize tables in cobol?

723


Name the divisions, which are available in a cobol program?

687


what is difference between cobol and cobol/400

21573


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


What are declaratives and what are their uses in cobol?

714


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

859


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1915


How many sections are there in data division in COBOL?

680