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 are the different rules of SORT operation?

692


how to convert the recors form vsam file to db2 table tru file aid

2758


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

639


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

417


What is inspect in cobol ?

797






1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5370


how do you reference the printer file formats from cobol programs

653


What is amode(31)

716


What are declaratives and what are their uses in cobol?

706


What are different data types in cobol?

685


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5673


What is the usage of comp fields in cobol?

652


What is the LINKAGE SECTION used in COBOL?

885


Which is not true about evaluate statement

1567


How to know whether the module is dynamical or statistical?

650