What is PERFORM what is VARYING?

Submitted by: Administrator
The PERFORM statement is a PROCEDURE DIVISION statement which transfers control to one or more specified procedures and controls as specified the number of times the procedures are executed. After execution of the specified procedures is completed (i.e., for the appropriate number of times or until some specified condition is met), control is transferred to the next executable statement following the PERFORM statement. There are 5 types of PERFORM statements

* a) Basic PERFORM
* b) PERFORM TIMES
* c) PERFORM UNTIL
* d) PERFORM VARYING
* e) IN-LINE PERFORM
Submitted by: Administrator

Read Online Cobol Job Interview Questions And Answers