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 is the use of IGNORE?

1 Answers   IBM,


Can anybody give me example of subscript and index

5 Answers  


How to open and see copy book ?

3 Answers  


I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


What is difference between static and dynamic call in cobol?

0 Answers  






write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

0 Answers  


Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is

12 Answers   TCS,


which certifications r 4 cobol,jcl,db2,cics what is format of xam n what is importance of these certifications... plz post answer only if u r sure... thanks

1 Answers  


file status 00 is checked after opening the file or reading the file

4 Answers   John Deere,


CAN ANY ONE HELP WHAT IS QTP? why it is nessery AND WEN IT IS USED?

1 Answers  


77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......

8 Answers  


plz,could any one tell me? what about EBCDIC in cobol?briefly?

1 Answers  


Categories