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
What is the local-storage section?
Give some examples of command terminators?
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?
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
how to refer the data field?
What are the different rules to perform a Search?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
how do you define single dimensional array and multidimensional array in your cobol?
What are the cobol coding sheets?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
In COBOL programming, what is PERFORM? What is VARYING?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is rmode(24)