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
Can a Search can be done on a table with or without Index?
What are 77 levels used for?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Name the divisions, which are available in a cobol program?
What is the local-storage section?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Can we change the password using ALTER? anyone tried and changed?
IF I mention stop run in CICS what happens?
A table has two indexes defined. Which one will be used by the SEARCH?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
Define static linking and dynamic linking.
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is the difference between goback, stop run and exit program in cobol?