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...


wht is the difference between goto and perform stmts

Answers were Sorted based on User's Feedback



wht is the difference between goto and perform stmts..

Answer / venu

in go to the control will be transferred to either forward
or backward.once u pick to forward it wont come backward.
only single iteration will be done in go to.
in perform the control transferred to both backward n
forwars also, here multiple iterations will be done.

Is This Answer Correct ?    41 Yes 5 No

wht is the difference between goto and perform stmts..

Answer / tata

perform is transfer control to a particular para and after
execution of that para contol comeback to the next statement
of perform.....
goto is also transfer control to a particular para and after
execution of that para contol goes forward... control never
comeback to next statement of goto......

Is This Answer Correct ?    24 Yes 1 No

wht is the difference between goto and perform stmts..

Answer / makar

First, what are they use for?

1) 'Go to' statement is use when you want to perform a para
or skip some para's(Somtimes tag are used instead of para)
and jump to next para or tag, without the control comming
back to statement after go to. It is like a Jump.

2) 'Perform' is used when you what to want to perform a
para and want the control to comeback to called statement.
However if you do not use EXIT statement at the end of the
para, it will 'fall thru' and perform the next para. Always
use Perform.. thru and Exit statement if you want the
control to come back.

Is This Answer Correct ?    25 Yes 3 No

wht is the difference between goto and perform stmts..

Answer / ravi

we can have control over perform but in goto we can not
have control.

Is This Answer Correct ?    14 Yes 4 No

wht is the difference between goto and perform stmts..

Answer / praveen b

Even though i read 6 answers still have a small confusion
regarding goto.
It will be more clear if someone can explain the difference
through a piece of code.

Thanks in Advance.

Is This Answer Correct ?    3 Yes 0 No

wht is the difference between goto and perform stmts..

Answer / jinna

Goto is unconditionally transferring the control elsewhere in the program but Perform is after execution the control return to statement

Is This Answer Correct ?    2 Yes 0 No

wht is the difference between goto and perform stmts..

Answer / lu

goto is different than perform...goto only don't give you
any execution ...perform execute your stament.....Like
english language...

Is This Answer Correct ?    5 Yes 6 No

Post New Answer

More COBOL Interview Questions

what are the working storage fields in BMS macro?

2 Answers   IBM,


We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)

1 Answers   Cap Gemini,


In COBOL programming, what is PERFORM? What is VARYING?

0 Answers   CDC,


which one is the best of com and com-3.using of real time ?

7 Answers   Cap Gemini,


consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size

1 Answers   TCS,


Can 88 level variable be declared in FD section..?

1 Answers   Infosys,


What R 2 of the common forms of the EVALUATE STATEMENT ?

1 Answers   Cap Gemini,


example for sub strings ? and refernce modifications whit output pls

0 Answers   College School Exams Tests, IBM,


What are different file OPEN modes available in COBOL?

4 Answers   Sun Life,


I've one string with spaces ( I N D I A ). My question is I want remove the spaces & combine in to single string without space (INDIA).How we can write the cobol program & wich options we need to use. Please let me know.

10 Answers   Mascon,


How to execute a set of JCL statements from a COBOL program?

2 Answers   Patni, Syntel,


How to use the same cobol program in Batch and CICS onlines ? Please expalin with an example. Thanks in advance.

1 Answers  


Categories