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 ?

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 ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

985


What are the pertinent COBOL

2239


Are you comfortable in cobol or jcl?

805


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

2183


What is the difference between PIC 9.99 and 9v99 in COBOL?

972


How many sections are there in data division in COBOL?

884


What is redefines clause in COBOL?

1037


What is inspect in cobol ?

1003


) How do u handle errors in BMS macro?

1618


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9234


What are the different rules to perform a Search?

809


Write a program that uses move corresponding.

868


Define cobol?

1073


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

902


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

922