What will happen if you code GO BACK instead of STOP RUN in
a stand-alone COBOL program i.e. a program which is not
calling any other program ?
Answers were Sorted based on User's Feedback
Answer / anoop
Nothing will happen. Program will run fine since Go back
gives the control back to the operating system
Is This Answer Correct ? | 18 Yes | 2 No |
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 ? | 9 Yes | 4 No |
Answer / sivakumar sekharannair
Yes nothing will happen since go back will take the control
back from where it is called and finally the control will
go to operating system
Is This Answer Correct ? | 6 Yes | 2 No |
should I use Go back in the main program ? Yes we can use Go back in main program as well.
if one main program ,n -subprograms are then which call you follow ?why reasonuhg
) how do u code after getting data?
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.
I have a sequential file of 100 records. How do I load the records into a two dimensional array ?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
What is report-item in COBOL?
How do u sort the table for Search ALL? Is it only using ASCENDING KEY IS statement in occurs clause? If the data is input in non ascending order, will the ASC KEY IS automatically sort the data? or will it throw compile time error?
what is the meaning of pic 9(09)v99-
Can we redefine the field of x(200) to less than 200?
s9(18) comp-3:: What is the size of memory it takes internally?
can we declare occurs in 01 level?