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

What is the local-storage section?

683


Give some examples of command terminators?

759


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1230


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

1960


how to refer the data field?

1812






What are the different rules to perform a Search?

619


What is the default value(s) for an initialize and what keyword allows for an override of the default?

697


how do you define single dimensional array and multidimensional array in your cobol?

677


What are the cobol coding sheets?

664


i want a program using by if, evaluate , string, unstring, perform, occurs?

4061


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

780


In COBOL programming, what is PERFORM? What is VARYING?

672


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


What is rmode(24)

680