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
In which area will you utilize 88 level items in cobol?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How do you reference the fixed block file formats from cobol programs
how do you reference the esds vsam file formats from cobol programs
IF I mention stop run in CICS what happens?
What is the difference between next sentence and continue in cobol programing language?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What are the access modes of START statement?
What is report-item in COBOL?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
How you can read the file from bottom?
What are the different types of condition in cobol and write their forms.
how do you define single dimensional array and multidimensional array in your cobol?
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.