What is an in line PERFORM? When would you use it? Anything else to say about it?
The PERFORM and END-PERFORM statements bracket all COBOL II statements between them. The COBOL equivalent is to PERFORM or PERFORM THRU a paragraph. In line PERFORMs work as long as there are no internal GO TOs, not even to an exit. The in line PERFORM for readability should not exceed a page length - often it will reference other PERFORM paragraphs.
RE: What is an in line PERFORM? When would you use it...
Hi When the body of the perform is not used in any other para. when the body of the perform is used in any other para then it's better to use the code in separate para and use PERFORM paraname instead of using in-line perform.
RE: What is an in line PERFORM? When would you use it...
In-line perform is a concept where the control will execute a block of statements residing in a same paragraph and here the control will not shift form one paragraph to another paragraph.