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

In which area will you utilize 88 level items in cobol?

712


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1019


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

670


How do you reference the fixed block file formats from cobol programs

699


how do you reference the esds vsam file formats from cobol programs

627






IF I mention stop run in CICS what happens?

1891


What is the difference between next sentence and continue in cobol programing language?

706


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8156


What are the access modes of START statement?

716


What is report-item in COBOL?

704


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

709


How you can read the file from bottom?

658


What are the different types of condition in cobol and write their forms.

656


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

667


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1776