Monday, 28 July 2014

COBOL Basic PERFORM.

The procedure(s) referenced in the basic PERFORM statement are executed once and the control passes to the next executable statement following the PERFORM statement. 

It is important to note that a PERFORM statement must not cause itself to be executed. Such a recursive PERFORM statement can cause unpredictable results.

Format : 


Example : In below example B100-INIT-PARA and B100-EXIT para is executed when control reach A000-MAIN-PARA paragraph.



Created with Artisteer

No comments:

Post a Comment