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

When we code these comp,comp1,comp-2,comp-3 and comp4 values. I know the differnece.I mean when we will prefer if it is new program.Explain in detail with memory examples. Thanks in advance.

1 Answers   CTS,


what is the difference b/w level no.01 & level no.77?

3 Answers   HCL,


what is the difference between Plan & package

3 Answers   IBM,


Why we need to use redefine clause when we can define the variable seperately... what is actual need....

5 Answers   Accenture,


What is COMP-1? COMP-2?

4 Answers   CitiGroup,






What does MAXCC 3 means? It is used in one my codes.

2 Answers   Wipro,


What is the difference between structured cobol programming and object alternativelyiented cobol?

0 Answers  


how to transfer the file from pc to mainframe??

3 Answers  


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

0 Answers  


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

0 Answers   Accenture,


Can anybody give me example of subscript and index

5 Answers  


How To move a value to an array using move verb?

3 Answers   IBM,


Categories