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

How do you reference the following file formats from cobol programs?

695


Name some of the examples of COBOl 11?

2686


What is the Purpose of Pointer in the string?

643


Whats the difference between search & search ALL?

5264


What guidelines should be followed to write a structured cobol prgm?

673






I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10626


What is rmode(any) ?

686


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

717


What is perform what is varying?

711


Can a Search can be done on a table with or without Index?

804


What is amode(31)

724


Define cobol?

864


What is redefines clause in COBOL?

851


How do we get current date from system with century in COBOL?

807


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2105