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 |
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
) How do u handle errors in BMS macro
How To move a value to an array using move verb?
What is COMP-1? COMP-2?
What is the difference between Perform para and perform asaection in cobol?
i have a requrement in A as viswa!@#$%&^**reddy i need to move viswareddy in B without junk values pls say how to do ths reply fast
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?
What is Redefines clause?
how to code in cobol while using variable block file?
Is It Possible to Update or change in VIEW Mode?
consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayedafter the PERFORM is over?assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above since there is a syntex error