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

can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2126


what is search and searchall?what is the diffrence between them?give an best example?

6199


What is the difference between structured cobol programming and object alternativelyiented cobol?

998


What is length is cobol?

864


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1989


What are the different rules of SORT operation?

904


Write down the divisions of cobol program?

850


What is the difference between goback, stop run and exit program in cobol?

1236


What is the difference between comp and comp-3 usage?

875


What is a SSRANGE and NOSSRANGE?

1125


example for sub strings ? and refernce modifications whit output pls

2071


How do get the result of your program directly on your pc?

2076


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

890


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

874


Which is not true about evaluate statement

2101