wht is the difference between goto and perform stmts

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a binary search and a sequential search what are the pertinent cobol?

737


What is the compute verb? How is it used?

666


What is the default value(s) for an initialize and what keyword allows for an override of the default?

697


Differentiate between structured cobol programming and object-oriented cobol programming.

669


What is the difference between comp and comp-3?

704






Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

720


What is report-item in COBOL?

713


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

678


What is an in line perform? When would you use it? Anything else you wish to say about it.

649


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1525


What is rmode(any) ?

686


how do you define single dimensional array and multidimensional array in your cobol?

683


Difference between array and sub-script ?

1169


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1933


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8668