What will happen if you code GO BACK instead of STOP RUN in
a stand alone COBOL 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 ?..

Answer / tidda

For a standalone program, it is the same. But STOP RUN from
a called program will not return control to the calling
program.

Is This Answer Correct ?    62 Yes 1 No

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

Answer / nilesh

Goback will return control back to OS ie its logical ending
of program but OS will decide what to do next , but
fortunately as GOBACK is the last statement in program so
it terminates.
GOBACK is specially used for called progam but we can use
it in main(STAND ALONE) program also.

Is This Answer Correct ?    49 Yes 0 No

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

Answer / guest

ans # 2 is correct .
Very often I USE go back in stand alone programs .

Is This Answer Correct ?    23 Yes 7 No

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

Answer / shan

Answer 4 is the correct explanation...

Is This Answer Correct ?    13 Yes 1 No

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

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

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

Answer / shilpi gupta

When Go back is specified in main program, it will act like STOP RUN and will give control back to MVS/OS.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / kotilingam

program execution will stop and control will not go back.

Is This Answer Correct ?    1 Yes 9 No

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

Answer / mithun

The program execution will go into infinite loop.

Is This Answer Correct ?    11 Yes 58 No

Post New Answer

More COBOL Interview Questions

Move Zeroes to I move 5 to j perform para1 varying I from 10 by -2 until I = 0 display j. para1. Add 5 to j. What’ll be the value after execution of display stmt. A) 35 B) 40 C) 30 D) 25 please explain how?

5 Answers  


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

0 Answers   HCL,


How does IDMS insure data integrity?

1 Answers  


what is the basic concept of mainframe? what knowledge is needed for learn this mainframe?

4 Answers   CSE, TCS, Wipro,


Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible

7 Answers   TCS,






What is the Importance of GLOBAL clause According to new standards of COBOL?

2 Answers   Infosys,


Describe the cobol database components?

0 Answers  


How you can read the file from bottom?

0 Answers  


What is the difference between static call & Dynamic call?

2 Answers   CSC, TCS,


What is an explicit scope terminator?

3 Answers  


Is this allowed? 01 WS-TABLE. 03 FILLER-X PIC X(5) VALUE 'AAAAA'. 03 WS-EX REDEFINES FILLER-X OCCURS 5 TIMES PIC X(1). can redefines clause be used with occurs clause?

4 Answers  


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

0 Answers  


Categories