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

01 x pic s9(8) comp. How will the following value be internally allocated '18787'

4 Answers   Steria,


Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.

2 Answers  


Why there is no questions in this column?

6 Answers  


What is report-item?

1 Answers   IBM,


What are the two search techniques ?

2 Answers   iGate,


How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?

3 Answers   Cap Gemini, CTS,


Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya

2 Answers   CSC,


What are some examples of command terminators?

1 Answers  


how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?

2 Answers   TCS,


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

0 Answers  


i have two file, each file having : file1 is having 2 fields field1 field2 file2 is having 3 fields field1 field2 field3 my req is to make it one file like: field1 field2 field1 field2 field3 if anyone know please send me syntax, i tried this with DFSORT but could not succeed.

9 Answers   Syntel,


What is the difference between index and subscript?

5 Answers   Visa,


Categories