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



What will happen if you code GO BACK instead of STOP RUN in a stand-alone COBOL program i.e. a pro..

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

What will happen if you code GO BACK instead of STOP RUN in a stand-alone COBOL program i.e. a pro..

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

What will happen if you code GO BACK instead of STOP RUN in a stand-alone COBOL program i.e. a pro..

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

Post New Answer

More COBOL Interview Questions

can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

0 Answers  


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

0 Answers  


What are the two search techniques ?

2 Answers   iGate,


What is Static and Dynamic linking ?

3 Answers  


What are various search techniques in cobol? Explain.

0 Answers  






What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?

2 Answers   Cap Gemini,


I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.

4 Answers   FIS, Wipro,


2)Where the Plan is located in CICS-DB2?

1 Answers   IBM,


Can we move SPACES to numeric field and ZEROES to alphabetic field? If yes what are the way doing this?

6 Answers   T systems,


input:-AABBCCDDEFGHIIJ output:- ABCDEFGHIJ Here in input we hav the duplicate characters i.e repeating characters.SO we should eliminate the duplicate characters and should display the output in ascending order.

6 Answers  


What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program ?

8 Answers   Arigo Infotech, IBM,


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

0 Answers  


Categories