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
How do you reference the following file formats from cobol programs?
Name some of the examples of COBOl 11?
What is the Purpose of Pointer in the string?
Whats the difference between search & search ALL?
What guidelines should be followed to write a structured cobol prgm?
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 ......
What is rmode(any) ?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is perform what is varying?
Can a Search can be done on a table with or without Index?
What is amode(31)
Define cobol?
What is redefines clause in COBOL?
How do we get current date from system with century in COBOL?
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