Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What will happen if you code GO BACK instead of STOP RUN in
a stand alone COBOL 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 ?..

Answer / tidda

For a standalone program, it is the same. But STOP RUN from
a called program will not return control to the calling
program.

Is This Answer Correct ?    62 Yes 1 No

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

Answer / nilesh

Goback will return control back to OS ie its logical ending
of program but OS will decide what to do next , but
fortunately as GOBACK is the last statement in program so
it terminates.
GOBACK is specially used for called progam but we can use
it in main(STAND ALONE) program also.

Is This Answer Correct ?    49 Yes 0 No

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

Answer / guest

ans # 2 is correct .
Very often I USE go back in stand alone programs .

Is This Answer Correct ?    23 Yes 7 No

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

Answer / shan

Answer 4 is the correct explanation...

Is This Answer Correct ?    13 Yes 1 No

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

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 ?    14 Yes 3 No

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

Answer / shilpi gupta

When Go back is specified in main program, it will act like STOP RUN and will give control back to MVS/OS.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / kotilingam

program execution will stop and control will not go back.

Is This Answer Correct ?    1 Yes 9 No

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

Answer / mithun

The program execution will go into infinite loop.

Is This Answer Correct ?    11 Yes 58 No

Post New Answer

More COBOL Interview Questions

What is the mode in which you will OPEN a file for writing?

4 Answers  


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

0 Answers   Accenture,


why do u need inspect verb?

3 Answers   Patni,


what is the minimum number of lines a Cobol program should have to successfully compile and run

11 Answers   ABC, Societe Generale,


How to display the index.(displacement from an array)

4 Answers   IBM,


how will u retreive value from a table.write it with syntex. 01 ws-table 05 ws-table1 occurs 10 times. 05 ws-table2 occurs 10 times. the above is 2 dimensional array..how will u retrieve 1st element of an array

3 Answers   ADP,


what is the difference between Normal vaiable and comp variable.

5 Answers   DELL,


where did you see the information regarding abend codes in jcl?

1 Answers   Hewitt,


There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?

2 Answers  


What does EXIT do ?

3 Answers   Deloitte,


s9(18) comp-3:: What is the size of memory it takes internally?

4 Answers  


PERFORM ACCUMULATE-TOTALS VARYING A FROM 1 BY 2 UNTIL A >2 AFTER B FROM1 BY 1 UNTIL B>2 AFTER C FROM 2 BY -1 UNTIL C<2 How many times the paragraph ACCUMULATE-TOTALS would be exicuted?

5 Answers   TCS,


Categories